Re: curl 'name look up timeout' error

wd <[email protected]>
Newsgroups gmane.comp.web.curl.php
Message-ID <[email protected]>
Red Hat Enterprise Linux Server release 5.2 (Tikanga)
Apache 2.2.11 compile by hand.


2010/4/6 Alberto Eduardo <[email protected]>

> 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 <[email protected]>
>
>> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.