[Twisted-Python] Proxy support through urllib2?

Gabriel Rossetti gabriel.rossetti at arimaz.com
Mon Jan 11 08:33:01 EST 2010


Hello everyone,

Is it possible to use a proxy with Twisted? I can do this with urllib2 :

proxy = urllib2.ProxyHandler({"http": "http://my.proxy.com:8080"})
opener = urllib2.build_opener(proxy)
urllib2.install_opener(opener)

will that suffice? I'd need SOCKSv5 and HTTP proxy support.

Thanks,
Gabriel



More information about the Twisted-Python mailing list