handling https sites

cgoldberg cgoldberg at gmail.com
Fri Jun 26 12:34:02 EDT 2009


> 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

-Corey



More information about the Python-list mailing list