Re: Proxy connect errors

From: Daniel Stenberg <>
Date: Fri, 1 Jul 2005 00:22:56 +0200 (CEST)

On Thu, 30 Jun 2005, Andrew Bushnell wrote:

> OK, in pycurl I turned on verbose and here is what is printed out when it
> fails:

This is very clearly a libcurl problem, and even one I've got a bug report and
initial patches for, but that never was completed nor incorporated...

> < HTTP/1.0 407 Proxy Authentication Required
> < Content-Length: 1313

This is what confuses libcurl. In the middle of the CONNECT authentication,
there's a Content-Length: and thus a response-body being returned by the
proxy, and the CONNECT-code in libcurl is not written to properly deal with

The problem is located in curl/lib/http.c:Curl_ConnectHTTPProxyTunnel()...

  Commercial curl and libcurl Technical Support:
Received on 2005-07-01