[Twisted-web] simple proxy example?
general at eepatents.com
Mon Aug 28 16:11:52 CDT 2006
For web2, I have written an implementation of iweb.IResource that
generates the result of its renderHTTP method via a proxying client
access to another HTTP server. See ProxyResource at
Best regards, Ed
Wendell Turner wrote:
> The webdownload.py script in Abe Fettig's book works fine for
> directly connected machines. I would like to modify it to use a
> proxy. Most of the examples in the twisted docs seem to show
> how to write a proxy, not how to use one.
> To modify that example to use a proxy, do I need to use a
> ProxyClientFactory instead of the HTTPDownloader? I tried that,
> but it needs 7 arguments, and I could not tell what they should
> Or do I just set the factory.protocol to proxy.Proxy? If so,
> where do I tell it the proxy's address & port?
> Is there a (simple(!)) twisted web page retrieval script that
> uses (i.e. runs behind) a proxy server that I could use to start
> Twisted-web mailing list
> Twisted-web at twistedmatrix.com
More information about the Twisted-web