Using urllib2 to access an https site using a proxy doesn't work. It always returns " " I've been looking around for bug reports on this and code samples, but all that I've got were emails/forum posts dating back to 2003 warning that the HTTPS over Proxy in urllib2 isn't implemented in Python! Is this true?
Logged In: YES user_id=261020 Yes, there is no special support for using https proxies (via the CONNECT method) in httplib or urllib2. http://python.org/sf/515003 shows how to do it, but the patch is not good enough to be added to the standard library. Feel free to write a better patch! Please close this, since it's really a feature request, not a bug.
I stumbled about this here because of testing the Ubuntuone project: http://en.oreilly.com/oscon2009/public/schedule/detail/8843 The client for the ubuntuone cloud computing suffers from being unable to connect through a HTTPS proxy. May be some of the folks at Canonical are now willing to spend some time on this issue here? It is recorded in the Ubuntu tracker as: https://bugs.launchpad.net/ubuntu/+source/python2.6/+bug/94130 I think a lot of the corporate Ubuntu Linux users behind restrictive firewalls are affected by this problem.