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

curl-and-php

Re: curl 'name look up timeout' error

From: Alberto Eduardo <elpasta_at_gmail.com>
Date: Tue, 6 Apr 2010 13:35:57 +0200

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
Received on 2010-04-06