When trying to get a domain name that doesn't exist, or some sort of problem with the lookup such as below, there is no error response.

$urls = array(

drupal_http_request returns the following error result:

stdClass Object
    [code] => 0
    [error] => php_network_getaddresses: getaddrinfo failed: Name or service not known
#3 httprl-1336086-3.patch2.71 KBmikeytown2


mikeytown2’s picture

Yep, it is a bug. If you need this NOW, you can check the return value of httprl_request() as that should contain the error.

modstore’s picture

It's ok, I have added a workaround for now.

I can't check the return value, caus I send it 50 urls for example, and 4 might fail, and I need to know the ones that do. Currently for a workaround, I have my own lookup so I know which urls aren't returned.


mikeytown2’s picture

Status:Active» Fixed
new2.71 KB

This patch has been committed.

Status:Fixed» Closed (fixed)

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