Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
hass CreditAttribution: hass commentedComment #2
hass CreditAttribution: hass commentedDuplicate of #1428484: Improperly formatted HTTP version cause very many malfunctions
Comment #2.0
hass CreditAttribution: hass commenteda