[issue7291] urllib2 cannot handle https with proxy requiring auth

Tatsuhiro Tsujikawa report at bugs.python.org
Mon Nov 9 07:56:15 CET 2009


Tatsuhiro Tsujikawa <tsujikawa at gp.hitachi.co.jp> added the comment:

I created a patch.
I added additional argument 'headers' to HTTPConnection::set_tunnel()
method,
which is a mapping of HTTP headers to sent with CONNECT method. Since
authorization
credential is already set to Request object, in
AbstractHTTPHandler::do_open(),
if "Proxy-Authorization" header is found, pass it to set_tunnel().

It works fine for me.

----------
keywords: +patch
Added file: http://bugs.python.org/file15296/https_proxy_auth.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7291>
_______________________________________


More information about the Python-bugs-list mailing list