curl-library
Re: Content-Length and Proxy
Date: Wed, 16 Jan 2013 23:09:00 +0100 (CET)
On Wed, 16 Jan 2013, Jeroen Venderbosch wrote:
> Sending of Post/Get request by using the curl implementation of PHP. A https
> connection is set up with a proxy-server in between. Original Post/Get
> requests become CONNECT requests by curl. CONNECT requests arrive at the
> proxy-server with a Content-Length field set.
How come there's a Content-Length header there in the first place?
And which libcurl version are you using?
> Question: Why does (lib)curl set the Content-Length field on a CONNECT
> request?
It doesn't. I think you are!
> Is this combination not allowed according to the W3-standards?
Since we don't intend to send any body in the CONNECT request it shouldn't
have any such header, no.
See also my (pending) CURLOPT_PROXYHEADER patch that might be a fix to what
you experiencing:
http://curl.haxx.se/mail/lib-2012-09/0059.html
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2013-01-16