This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author tsujikawa
Recipients tsujikawa
Date 2009-11-09.04:38:15
SpamBayes Score 3.29979e-11
Marked as misclassified No
Message-id <>
urllib2 cannot handle https with proxy requiring authorization.

After https_proxy is set correctly,

Python 2.6.4 (r264:75706, Oct 29 2009, 15:38:25)
[GCC 4.4.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import urllib2
>>> c=urllib2.urlopen("")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.6/", line 124, in urlopen
    return, data, timeout)
  File "/usr/lib/python2.6/", line 389, in open
    response = self._open(req, data)
  File "/usr/lib/python2.6/", line 407, in _open
    '_open', req)
  File "/usr/lib/python2.6/", line 367, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.6/", line 1154, in https_open
    return self.do_open(httplib.HTTPSConnection, req)
  File "/usr/lib/python2.6/", line 1121, in do_open
    raise URLError(err)
urllib2.URLError: <urlopen error Tunnel connection failed: 407 Proxy
Authentication Required>

This is because HTTPConnection::_tunnel() in doesn't send
Proxy-Authorization header.
Date User Action Args
2009-11-09 04:38:18tsujikawasetrecipients: + tsujikawa
2009-11-09 04:38:18tsujikawasetmessageid: <>
2009-11-09 04:38:16tsujikawalinkissue7291 messages
2009-11-09 04:38:15tsujikawacreate