cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: CURLE_COULDNT_CONNECT only after resolve?

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Thu, 3 Feb 2005 15:27:59 +0100 (CET)

On Thu, 3 Feb 2005, Traian Nicolescu wrote:

> Hi. One of my users keeps getting CURLE_COULDNT_CONNECT when attempting to
> connect to my application's HTTP server. I just need you to confirm that
> getting CURLE_COULDNT_CONNECT means that it was able to resolve the host
> name, but it was unable to establish the TCP connection to my server.

That is correct. libcurl first resolves the name to an IP address, then it
uses that address to make the TCP connection. In this case, the setting up of
the connection fails.

-- 
      Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
       Dedicated custom curl help for hire: http://haxx.se/curl.html
Received on 2005-02-03