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.
More status code issues... I have hundreds of these 400 errors... cross checked with wget. Core is always correct.
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.suchtvorbeugung.de',
'http://www.zpid.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 #0.0
hass CreditAttribution: hass commenteds
Comment #1
hass CreditAttribution: hass commentedDuplicate of #1428484: Improperly formatted HTTP version cause very many malfunctions
Comment #1.0
hass CreditAttribution: hass commenteda