curl-users
Re: gethostbyname_r(2)
Date: Thu, 17 Oct 2002 09:28:11 +0200 (MET DST)
On Wed, 16 Oct 2002, Zvi Har'El wrote:
> I have installed curl-7.10.1 on RedHat 8.0 machine. First, I would like to
> thank Daniel for including my fix for identifying the engine version of ssl
> correctly.
Thank you, for providing the fix!
> Second, I have a problem: When using curl without a proxy, it fails to
> reolve the site address:
>
> ~$ curl --version
> curl 7.10.1 (i686-pc-linux-gnu) libcurl/7.10.1 OpenSSL/0.9.6g zlib/1.1.4
> ~$ curl -I http://www.google.com
> * Couldn't resolve host 'www.google.com'curl: (6) Couldn't resolve host
> * 'www.google.com'
I find this very strange, since no one else has reported this and I figure it
should hit quite a lot of people if this is truly a curl error.
However, can you possibly set a break-point in Curl_getaddrinfo (hostip.c
around line 510) and single-step forward until it fails and see what kind of
error it detects?
We use gethostbyname_r() for name resolves (where available), and this
function is annoyingly badly documented.
> ~$ export http_proxy=http://proxy:8080/
> ~$ curl -I http://www.google.com
> HTTP/1.0 302 Moved Temporarily
It could resolve the proxy name at least!
> Do you have an idea? Might it be a problem of the new gcc or its libraries?
I don't think it is gcc-related, no. But I have no good ideas yet. I need
more details on the little things.
-- Daniel Stenberg -- curl, cURL, Curl, CURL. Groks URLs. ------------------------------------------------------- This sf.net email is sponsored by: viaVerio will pay you up to $1,000 for every account that you consolidate with us. http://ad.doubleclick.net/clk;4749864;7604308;v? http://www.viaverio.com/consolidator/osdn.cfmReceived on 2002-10-17