cURL / Mailing Lists / curl-library / Single Mail


Re: Content-Length header on CONNECT requests

From: Daniel Stenberg <>
Date: Thu, 28 Jun 2012 23:35:34 +0200 (CEST)

On Wed, 27 Jun 2012, Fabian Keil wrote:

> I like the behaviour tested in 287 useful and would miss not being able to
> send custom HTTP headers in CONNECT requests with curl.
> I wouldn't mind if I had to use a separate option for this, though. In fact
> I would consider this an improvement, as it would allow something like:
> curl --header "Bla: fasel" --connect-header "Foo: bar"
> (Letting the proxy only see the header Foo, while only sees
> the header Bla.)

Yes, I completely agree. IMO, that's how we should've done it from the
beginning when we allowed custom headers in the CONNECT. I think I'll just
proceed and add exactly that.

List admin:
Received on 2012-06-28