cURL / Mailing Lists / curl-library / Single Mail


Content-Length header on CONNECT requests

From: Mark Aldred <>
Date: Tue, 26 Jun 2012 09:12:49 -0400

When using a proxy and issuing a request that contains a
content-length header, lib-curl includes the content-length header in
the CONNECT request (if a CONNECT is needed). Some proxies reject
this with a 400 (Bad Request). I have seen it with Bluecoat. This
seems like a bug in curl. Other than changing the curl code, how can
I avoid this?

List admin:
Received on 2012-06-26