cURL / Mailing Lists / curl-users / Single Mail

curl-users

Fwd: curl 'name look up timeout' error

From: wd <wd_at_wdicc.com>
Date: Thu, 8 Apr 2010 11:14:27 +0800

Forward to curl-users mail list.

---------- Forwarded message ----------
From: wd <wd_at_wdicc.com>
Date: 2010/4/6
Subject: curl 'name look up timeout' error
To: curl-and-php_at_cool.haxx.se

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 the newest curl *curl 7.20.0 *by hand, and
the error still there.

Some info may be useful:
Red Hat Enterprise Linux Server release 5.2 (Tikanga)
Apache 2.2.11 compile by hand.
PHP 5.2.9
curl-devel-7.15.5-2.el5
curl-7.15.5-2.el5. (*and already tried curl 7.20.0*)

Why does this happen? Any response would be welcome. thx.

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-04-08