Content-Length and Proxy
Date: Wed, 16 Jan 2013 12:01:32 +0100
I have a question about the Content-Length header field.
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.
Proxy-server refuses all CONNECT requests because the Content-Length field is set.
I search the W3- standards to see if a Content-Length field is forbidden on a CONNECT request.
I could not really find a clear answer.
Question: Why does (lib)curl set the Content-Length field on a CONNECT request? Is this combination not allowed according to the W3-standards?
Direct +31 75 61 69 946
Office +31 75 61 43 400
Fax +31 75 61 43 399
- application/pkcs7-signature attachment: smime.p7s