cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Possible patch about http custom header is used for proxy connection

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Thu, 6 Sep 2012 20:47:17 +0200

On Thu, Sep 06, 2012 at 04:37:05PM +0200, Daniel Stenberg wrote:
> I would like to introduce a complement to CURLOPT_HTTPHEADER that is
> used only for CONNECT requests. Called CURLOPT_PROXYHEADER or
> CURLOPT_CONNECTHEADER perhaps.
>
> The headers provided to CURLOPT_HTTPHEADER would then not be used at
> all in CONNECT requests.
>
> What do you think about using that approach?

Backwards compatibility would be an issue. But if you keep the current
behaviour until the app sets a CURLOPT_CONNECTHEADER (even to set a dummy
or NULL header), it ought to work.

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