cURL / Mailing Lists / curl-library / Single Mail


RE: Content-Length header on CONNECT requests

From: Andrei Cipu <>
Date: Wed, 27 Jun 2012 12:18:12 +0000

> -----Original Message-----
> On Tue, 26 Jun 2012, Mark Aldred wrote:
> > Here is the fix based on 7.25.0. Don't include any custom headers
> > with a CONNECT request.
> Yeah, that is tempting as adding them there certainly mostly add problems.
> However, for example test 287 uses (and verifies) a user-agent there and
> such a header does make some sense even in a CONNECT.
> Thoughts? (Question open to everyone!)

Well, it's a bit lateral from the actual problem, but this patch should affect only CONNECT request generated by curl, right? The user can still generate CONNECT requests manually that will contain (or not, depending on what the client app behavior is) other headers. So I'm thinking that either way, we have an workaround.


List admin:
Received on 2012-06-27