You know I have a bunch of test urls with funny and stressing results... and I also have very many of these errors... no edge cases... :-)

function httprl_admin_settings_form() {

  $headers = array();
  $headers['User-Agent'] = 'User-Agent: Drupal (+http://drupal.org/)';

  // Add in the headers and enable blocking mode.
  $options = array(
    'blocking' => TRUE,
    'headers' => $headers,
    'method' => 'HEAD',
    'max_redirects' => 1,
  );

  $urls = array(
  	'http://www.technikmuseen.de/',
  );

  foreach ($urls as $url) {
    // Queue up the requests.
    httprl_request($url, $options);

    // Compare to core:
    krumo(drupal_http_request($url, $options));
  }

  // Execute requests.
  $responses = httprl_send_request();
  foreach ($responses as $response) {
    krumo($response);
  }

Comments

hass’s picture

Title: Request timed out (code -1), but core/wget say "200 OK" » "-1 Request timed out", but core/wget say "200 OK"
hass’s picture

Status: Active » Closed (duplicate)
hass’s picture

Issue summary: View changes

a