[Twisted-web] Fwd: Web-Based Proxy

Jean-Paul Calderone exarkun at divmod.com
Mon Jul 20 14:41:08 EDT 2009

On Mon, 20 Jul 2009 12:01:22 -0500, dave fowler <davefowler at gmail.com> wrote:
>Ok, I've read the entire Twisted O'Reilly book and gone through many of the
>docs and tutorials but I still need a bit of direction.
>I'm trying to make a simple web-based proxy.  Similar to the proxy in the
>Twisted book, but with a web interface.  So I could go to
>http://asdf.com.MYPROXYSITE.com and see the contents of asdf.com.
>I have the following code that works well as a browser proxy, but I need to
>figure out how make it web based.
>My thoughts are that I need to make an HTTP server and then adjust the
>address in the protocol before finishing the proxy request.  Am I on the
>right track?  Does anyone have examples of this?

The HTTP proxy implemented in twisted.web.proxy is probably a better
starting point.  Or, it's at least a good example of how to get a basic
proxy together. :)

I think you're on the right track, but if you don't want to have to implement
this all yourself, you probably don't have to.


More information about the Twisted-web mailing list