cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: CURLINFO_HTTP_CONNECTCODE problem

From: Victor Svetogor <victor_at_spy-soft.com>
Date: Wed, 02 May 2007 10:38:42 +0000

On Wed, 2007-05-02 at 00:11 -0700, Dan Fandrich wrote:
> On Wed, May 02, 2007 at 06:46:07AM +0000, Victor Svetogor wrote:
> > No, I do not use CURLOPT_HTTPPROXYTUNNEL, and I do not work with HTTPS.
> > I use only HTTP protocol. How I can distinguish in this case errors of
> > a web-server and a errors of a proxy?
>
> A proxy server will provide an HTTP error code, just like the remote server.
> Some codes (e.g. 407) will only come from a proxy server.
>
> >>> Dan

And what HTTP error codes can mean a error from a proxy-server? Or can i
detect proxy error using libcurl?
Thank you

Victor
Received on 2007-05-02