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?
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 .
Source: https://habr.com/ru/post/1724639/More articles:With Git, how can I make some changes to the working copy in another branch? - gitWhy do I get a 403 ban when I call an external IIS-based MVC that returns a JSON result - jqueryGetting topic information from a style.css file in Wordpress - phpCan urllib2 request HTTP / 1.1? - pythonbest jQuery mouseover way? - jqueryCaching data using hidden divs - htmlUnable to set style for path in resource dictionary - silverlightWorkflow Options for Workflow Workflow - workflowmysqlplus is better adapter than ruby mysql? - ruby | fooobar.comBy including a JSP page on another JSP page, how do I avoid multiple HEAD / BODY sections? - java-eeAll Articles