[Twisted-Python] Web Proxy that does something different once a day

Fred Trotter fred.trotter at gmail.com
Fri Sep 21 14:34:35 MDT 2007


> It looks like this is just for the web browsers
> (i.e., HTTP protocol). If so, then at step 2
> you would make your test. If you decide A should
> go to the "required reading" URL instead of the
> requested URL, simply skip steps 3-5 and return
> a valid HTTP document with a "moved temporarily"
> code (30x, I think). The browser will then request
> the other URL. The one catch is that, depending on
> the browser, the user may get the same page if they
> request the original URL again in the same browser
> window/session. If that's the case, they would need
> to open a new window to get to the original URL.

That sounds reasonable and good. Any clue how you would implement that
in Twisted?

-FT

-- 
Fred Trotter
http://www.fredtrotter.com




More information about the Twisted-Python mailing list