cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re:Re: about CURLE_COULDNT_CONNECT

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 2 Apr 2015 17:38:44 +0200 (CEST)

On Thu, 2 Apr 2015, 兰天 wrote:

> I use curl_easy_setopt(CURLOPT_VERBOSE,1L);
> and get some information ,for example:
> getaddrinfo(3) failed for ------> I think this is error code 6
>
> * About to connect() to xxxxx port 80 (#210) ------> I think this is error code 7
> * couldn't connect to host

Is this a slightly older libcurl version? I can't find that output string
anymore.

And no, it is not the error code but it shows how libcurl fails to connect
(even which host and port number). Just as the return code says.

-- 
  / daniel.haxx.se

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2015-04-02