<DIV>
<DIV>Hello,&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>I'm taking a class in which we're supposed to be implementing a pseudo-proxy server that does some text parsing on web pages before passing them back to the client.&nbsp; The proxy is supposed to be accessed via the URL and port that the server is running on, using an .rpy file.</DIV>
<DIV>&nbsp;</DIV>
<DIV>I've looked through all of the available Twisted documentation, but just can't seem to get a handle on how to get started.&nbsp; It's mostly setup questions - what code should go in which files?&nbsp; How do I run it?&nbsp; How do I test it?&nbsp; There are a lot of code examples available, but very little information on how they interact and call each other.&nbsp; It doesn't help that I am not too familiar with the OO-style API documentation.</DIV>
<DIV>&nbsp;</DIV>
<DIV>I know that I need to be creating a subclass of HTTPClient, and creating a resource in the .rpy file.&nbsp; I'm guessing that the .rpy file should create an instance of the HTTPClient subclass and use it to retrieve the requested URL (we have to get it line by line), but I don't understand how to create the instance.</DIV>
<DIV>&nbsp;</DIV>
<DIV>A single good example that creates a web proxy server which simply retrieves the data line by line and displays it to the screen, plus the shell commands needed to run/test would be extremely helpful.&nbsp; I am completely confused as to how the web server and .rpy file would interact.</DIV>
<DIV>&nbsp;</DIV>
<DIV>I hope someone has the time and know-how to help me out.</DIV>
<DIV>THANKS</DIV></DIV><p>__________________________________________________<br>Do You Yahoo!?<br>Tired of spam?  Yahoo! Mail has the best spam protection around <br>http://mail.yahoo.com