[Twisted-Python] Proxy support through urllib2?

Kevin Horn kevin.horn at gmail.com
Mon Jan 11 11:40:55 EST 2010

On Mon, Jan 11, 2010 at 7:33 AM, Gabriel Rossetti <
gabriel.rossetti at arimaz.com> wrote:

> 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
When you say you want to "use a proxy with Twisted", do you mean that you
want Your Twisted applicatino to provide a proxy to other applications, or
do you mean that you want your Twisted application to use a (separate)

Kevin Horn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://twistedmatrix.com/pipermail/twisted-python/attachments/20100111/c7622267/attachment.htm 

More information about the Twisted-Python mailing list