cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: requirement to detect proxy connection failure.

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 25 May 2009 15:24:45 +0200 (CEST)

On Mon, 25 May 2009, chandrakant gupta wrote:

> I have a problem that i am not able to differentiate whether connection to
> proxy has failed or to the actaul server. In both case it sometinme return
> error code 07 (CURLE_COULDNT_CONNECT ). how do i differenctiate please help
> me out. i have a requirement to detect proxy connection failure.

I guess it depends. You didn't really give us any details, so let me say this:

$ grep CURLE_COULDNT_CONNECT lib/*.c | wc -l
79

-- 
  / daniel.haxx.se
Received on 2009-05-25