
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. Cheers, nnp On Thu, Jul 24, 2008 at 11:23 AM, Tim Allen <screwtape@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@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
-- http://www.smashthestack.org http://www.unprotectedhex.com