Warning:

Strict warning: Creating default object from empty value in httprl_request() (line 281 of \drupal7\sites\all\modules\httprl\httprl.module).

Repro case:

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.bma.bund.de/index.cfm?8AC792DB077C4AB5BDB675A52577F0BE',
  );

  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);
  }

Reason:
The site that has been called redirects to a HOST that does not exists. php_network_getaddresses: getaddrinfo failed: No such host is known.

Comments

hass’s picture

Issue summary: View changes

a

hass’s picture

hass’s picture

Status: Active » Needs review
StatusFileSize
new955 bytes

Workaround... however I'm asking me more - if there should be an error message...

mikeytown2’s picture

Status: Needs review » Fixed
StatusFileSize
new1.38 KB

This patch has been committed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

g