Message246535
David: the original patch made in Issue 1424152 fixed Python 2’s urllib.request.urlopen() and Python 2’s urllib2.urlopen(). But Stefano is using URLopener, which I understand comes from Python 2’s older “urllib” module.
When I run the demonstration, the request to the proxy looks like this:
GET https://www.python.org HTTP/1.1
Host: www.python.org
Accept-Encoding: identity
Connection: close
User-Agent: Python-urllib/3.4
I think Stefano requires a “CONNECT www.python.org:443” request instead. There is apparently a patch which sounds like it does this. See issue1424152-py27-urllib.diff and the messages beginning with <https://bugs.python.org/issue1424152#msg194704>. I suggest any further work (e.g. tests and documentation) continue here, since the other issue has been closed and mainly discusses “urllib2”. |
|
Date |
User |
Action |
Args |
2015-07-10 00:00:37 | martin.panter | set | recipients:
+ martin.panter, r.david.murray, stefano-m |
2015-07-10 00:00:37 | martin.panter | set | messageid: <1436486437.95.0.698160530918.issue24599@psf.upfronthosting.co.za> |
2015-07-10 00:00:37 | martin.panter | link | issue24599 messages |
2015-07-10 00:00:37 | martin.panter | create | |
|