cURL / Mailing Lists / curl-library / Single Mail



From: Victor Svetogor <>
Date: Wed, 02 May 2007 06:46:07 +0000

On Tue, 2007-05-01 at 14:49 -0700, Dan Fandrich wrote:
> On Tue, May 01, 2007 at 11:53:32PM +0300, Victor Svetogor wrote:
> > In my program I do CURLOPT_POST request (easy interface) using of a
> > proxy-server, and I try to get value CURLINFO_HTTP_CONNECTCODE from
> > function curl_easy_getinfo. But always I receive 0, it is independent
> > what answer from of a proxy-server. In what a problem? It works for
> > someone? curl-7.16.2
> CURLINFO_HTTP_CONNECTCODE, as the name implies, is only set when curl
> tunnels through the proxy using CONNECT, which is only done on an HTTPS
> connection or if CURLOPT_HTTPPROXYTUNNEL is set. Are you doing either
> of those?
> >>> Dan

Hello Dan!

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?

SY. Victor
Received on 2007-05-02