Message96845
| Author |
dieresys |
| Recipients |
dieresys, orsenthil, ronaldoussoren, tsujikawa |
| Date |
2009年12月23日.22:16:00 |
| SpamBayes Score |
0.0009992572 |
| Marked as misclassified |
No |
| Message-id |
<1261606561.5.0.178392728179.issue7291@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
The patch fixes only when you pass the authentication info in the proxy
handler's URL. Like:
proxy_handler = urllib2.ProxyHandler({'https':
'http://user:pass@proxy-example.com:3128/'})
But setting the authentication using a ProxyBasicAuthHandler is still
broken:
proxy_auth_handler = urllib2.ProxyBasicAuthHandler()
proxy_auth_handler.add_password('realm', 'proxy-example.com:3128',
'user', 'pass')
In the attached file (urllib2_with_proxy_auth_comparison.py) we've wrote
a comparison between what works with HTTP and HTTPS.
The problem is the 407 error never reaches the ProxyBasicAuthHandler
because HTTPConnection._tunnel raises an exception when the http
response status code is not 200. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2009年12月23日 22:16:01 | dieresys | set | recipients:
+ dieresys, ronaldoussoren, orsenthil, tsujikawa |
| 2009年12月23日 22:16:01 | dieresys | set | messageid: <1261606561.5.0.178392728179.issue7291@psf.upfronthosting.co.za> |
| 2009年12月23日 22:16:00 | dieresys | link | issue7291 messages |
| 2009年12月23日 22:16:00 | dieresys | create |
|