cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Re: curl 'name look up timeout' error

From: wd <wd_at_wdicc.com>
Date: Wed, 7 Apr 2010 09:55:59 +0800

Red Hat Enterprise Linux Server release 5.2 (Tikanga)
Apache 2.2.11 compile by hand.

2010/4/6 Alberto Eduardo <elpasta_at_gmail.com>

> Sorry, Im going to answer with questions, but I need to know first... What
> flavor of linux are you using? Apache version?
>
> Alberto
>
> 2010/4/6 wd <wd_at_wdicc.com>
>
>> hi,
>>
>> I use curl_exec in php to get some date from a url like '
>> http://abc.com/page/1' on an linux server.
>>
>> abc.com is not exists, I set it in /etc/hosts like '123.23.2.3 abc.com',
>> I can ping this hostname correctly, and never lost any ping package.
>>
>> But when I use curl_exec in php, randomly got error like this mail title
>> said. The error code is 6.
>>
>> Then I try to use curl in command line like 'curl http://abc.com/page/1',
>> the same error randomly occur.
>>
>> The curl version on that server is curl-devel-7.15.5-2.el5 and
>> curl-7.15.5-2.el5. I've tried download and compile a curl by hand, and the
>> error still there.
>>
>> Why does this happen? Any response would be welcome. thx.
>>
>>
>> _______________________________________________
>> http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
>>
>>
>
> _______________________________________________
> http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
>
>

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2010-04-07