How can urllib2 / httplib speak HTTP 1.1 for HTTPS connections through a Squid proxy?

When I use urllib2 to connect HTTP 1.1 through a squid proxy, squid makes a new current connection in HTTP 1.0.

How can I convince Squid to say 1.1 on the target server?

+2
source share
1 answer

After solving this problem all day, I found a solution. So please excuse me in answering my own question, but it would be great if someone finds this useful and it will relieve them of the pain.

Squid HTTP 1.1- , HTTP CONNECT. http://bugs.python.org/issue1424152.

py3k, Python 3.1 2.6.

Python 2.5 2.4, httplib.py urllib2.py http://pypi.python.org/pypi/httpsproxy_urllib2. 2 .

+3

Source: https://habr.com/ru/post/1724639/


All Articles