cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: Content-Length header on CONNECT requests

From: Andrei Cipu <acipu_at_ixiacom.com>
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.

Andrei

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-06-27