curl-library
Re: CURLPROXY_HTTP_1_0 does not affect protocol version (still HTTP/1.1)
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 19 Apr 2011 22:08:17 +0200 (CEST)
Date: Tue, 19 Apr 2011 22:08:17 +0200 (CEST)
On Tue, 19 Apr 2011, Dan Fandrich wrote:
>> It only works for proxy tunnels (when CURLOPT_HTTPPROXYTUNNEL is set
>> to 1). Look:
>
> I suspect that's by design. Normal HTTP proxies are more transparent to
> HTTP, so the normal HTTP version option should take affect for them. Try
> setting the CURLOPT_HTTP_VERSION option and see if that changes the version.
Yes. I gave this some thinking and I think it makes most sense to keep the
options separated and have the CURLOPT_PROXYTYPE = CURLPROXY_HTTP_1_0 only
affect the CONNECT string and have all other "normal" HTTP requests rather use
the CURLOPT_HTTP_VERSION option instead.
Of course this should then be documented clearly so users can figure this out!
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2011-04-19