curl-and-python

Re: Proxy connect errors

From: Daniel Stenberg <daniel-curl_at_haxx.se>
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
this.

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

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
_______________________________________________
http://cool.haxx.se/mailman/listinfo/curl-and-python
Received on 2005-07-01