Message246535
| Author |
martin.panter |
| Recipients |
martin.panter, r.david.murray, stefano-m |
| Date |
2015年07月10日.00:00:37 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1436486437.95.0.698160530918.issue24599@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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". |
|
History
|
|---|
| 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 |
|