handling https sites

Cameron Simpson cs at zip.com.au
Tue Jun 30 18:39:41 EDT 2009

On 26Jun2009 09:34, cgoldberg <cgoldberg at gmail.com> wrote:
| > Is there any module in python to open https
| > sites through a proxy.
| yes, you can use "urllib2".
| from the urllib2 docs:
| "The default is to read the list of proxies from the environment
| variables"
| So if you have a proxy setup, it should detect it from your
| environment vars.  If you want to specify something different, you
| want to build an opener with a ProxyHandler:
| http://docs.python.org/library/urllib2.html#urllib2.ProxyHandler

Except that HTTPS through a proxy doesn't work:

There's a patch under review.
Cameron Simpson <cs at zip.com.au> DoD#743

More information about the Python-list mailing list