cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: CURLPROXY_HTTP_1_0 does not affect protocol version (still HTTP/1.1)

From: Александр <sdtjeck_at_gmail.com>
Date: Tue, 19 Apr 2011 16:06:34 +0400

2011/4/19 tetetest tetetest <tetetest_at_rambler.ru>

> Hi all,
>
> After some experiments with proxy types and CURLPROXY_HTTP_1_0, I found
> that it does not change the protocol version for plain HTTP proxies.
> It only works for proxy tunnels (when CURLOPT_HTTPPROXYTUNNEL is set to 1).
> Look:
>
> Tunnel, CURLOPT_PROXYTYPE = CURLPROXY_HTTP:
>
> ** About to connect() to proxy blabla port 8080 (#0)
> ** Trying 192.168.1.19... ** connected
> ** Connected to blabla (192.168.1.19) port 8080 (#0)
> ** Establish HTTP proxy tunnel to www.google.ru:80
>
>> CONNECT www.google.ru:80 HTTP/1.1
>>>
>> [...]
>
> Tunnel, CURLOPT_PROXYTYPE = CURLPROXY_HTTP_1_0:
>
> ** About to connect() to proxy blabla port 8080 (#0)
> ** Trying 192.168.1.19... ** connected
> ** Connected to blabla (192.168.1.19) port 8080 (#0)
> ** Establish HTTP proxy tunnel to www.google.ru:80
>
>> CONNECT www.google.ru:80 HTTP/1.0
>>>
>> [...]
>
> So far so good. Now the same without tunnelling:
>
> No tunnel, CURLOPT_PROXYTYPE = CURLPROXY_HTTP:
>
> ** About to connect() to proxy blabla port 8080 (#0)
> ** Trying 192.168.1.19... ** connected
> ** Connected to blabla (192.168.1.19) port 8080 (#0)
>
>> GET http://www.google.ru/ HTTP/1.1
>>>
>> [...]
>
> No tunnel, CURLOPT_PROXYTYPE = CURLPROXY_HTTP_1_0:
>
> ** About to connect() to proxy blabla port 8080 (#0)
> ** Trying 192.168.1.19... ** connected
> ** Connected to blabla (192.168.1.19) port 8080 (#0)
> >> GET http://www.google.ru/ HTTP/1.1
> [...]
>
> The library is using HTTP/1.1 though I specifically ordered HTTP/1.0.
>
> --
> Best regards.
> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/list/listinfo/curl-library
> Etiquette: http://curl.haxx.se/mail/etiquette.html
>
Пиздец бля, как отписаться нахуй отсюда?

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-04-19