[Twisted-Python] Re: Running a HTTP client connection through a SOCKS proxy

nnp version5 at gmail.com
Thu Jul 24 06:49:56 EDT 2008

Hrm, OK....I'm not sure if I have an odd view of the world or whether
supporting HTTP proxies isn't all that important. Aren't HTTP proxies
fairly common in large organisations and universities?

Looks like I won't be able to use Twisted for this particular project
then. In case anyone is wondering, I solved the problem (of needing
support for access to https sites via a proxy) by using the code found
here http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/456195

As for the socks proxy support....I looked at that and a few other
modules but (unsurprisingly) found no real documentation and seeing as
how I'm new to Twisted I also had no clue how to use the classes.


On Thu, Jul 24, 2008 at 11:23 AM, Tim Allen <screwtape at froup.com> wrote:
> On Wed, Jul 23, 2008 at 04:07:20PM +0100, nnp wrote:
>> I just realised web proxy support would be much preferable to SOCKSv4
>> (long day, very tired)...so...to alter my question....does twisted
>> have support for proxying connections through a web proxy?
> I believe Twisted doesn't support HTTP proxies of any kind. There is
> support for SOCKSv4 in twisted.protocols.socks, but it's not immediately
> evident to me how it works.
> It seems to me that in an ideal world, there would be some kind of Proxy
> class available that would look much like a reactor to the outside
> world, but contain all the logic for reading proxy settings from the OS
> and making outgoing connections via those configured proxies. One day,
> if I get far enough down my list of potential weekend projects, I might
> even do it myself.
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python


More information about the Twisted-Python mailing list