cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: about CURLE_COULDNT_CONNECT

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

On Thu, 2 Apr 2015, 兰天 wrote:

> however,when use a url to download, I met an error indicate
> CURLE_COULDNT_CONNECT ,and I open this url in google chrome, and it could
> be opened. I do not get any clue from this error code, is there any method
> to tell me how to locate the error. socket create failure? or connect
> function failure ?

It means libcurl failed to complete a TCP connect handshake with the server.

This usually happens when you have a proxy configuered in the browser but not
for libcurl or something like that.

-- 
  / 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