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.

<?php
$urls
= array(
 
'http://somethingnonexistant.com/',
);
?>

drupal_http_request returns the following error result:

<?php
stdClass Object
(
    [
code] => 0
   
[error] => php_network_getaddresses: getaddrinfo failed: Name or service not known
)
?>
Files: 
CommentFileSizeAuthor
#3 httprl-1336086-3.patch2.71 KBmikeytown2

Comments

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.

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.

Cheers.

Status:Active» Fixed
StatusFileSize
new2.71 KB

This patch has been committed.

Status:Fixed» Closed (fixed)

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