urllib.ProxyHandler HTTPS issues

Devraj devraj at gmail.com
Thu Oct 11 18:21:18 EDT 2007


Thanks John. Will investigate sending the CONNECT command to handle
proxies.

Do you recommend doing this for HTTP proxies as well or should I just
use the ProxyHandler for HTTP proxies?


On Oct 12, 4:29 am, j... at pobox.com (John J. Lee) wrote:
> Devraj <dev... at gmail.com> writes:
> > Hi everyone,
>
> > I have been reading various documents/posts on the web about handling
> > proxy options in urllib2. Some of them suggest that urllib2 doesn't
> > handle HTTPS and others say it does. I have successfully written code
> > that relays HTTP connections via a proxy but have failed to do the
> > same for HTTPS connections.
>
> urllib2 does not support "HTTPS proxies" (it does not support use of
> the CONNECT method).
>
> > Can anyone confirm if urllib2 can handle HTTPS,
>
> Yes, it can.
>
> John





More information about the Python-list mailing list