cURL / Mailing Lists / curl-library / Single Mail



From: Dan Fandrich <>
Date: Tue, 1 May 2007 14:49:12 -0700

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

--              The web change of address service
          Let webmasters know that your web site has moved
Received on 2007-05-01