durusmail: quixote-users: Redirect with <meta http-equiv="refresh"...>
Redirect with <meta http-equiv="refresh"...>
2004-12-03
2004-12-09
2004-12-09
2004-12-09
Redirect with
Thomas Guettler
2004-12-09
Am Mittwoch, 8. Dezember 2004 00:03 schrieb Neil Schemenauer:
> On Fri, Dec 03, 2004 at 10:51:33PM +0100, Thomas Guettler wrote:
> > There are some Webservers which don't read the first line if the cgi
> > script and always return "200 Script output follows". CGIHTTPServer.py
> > is one of them. This way redirecting does not work. This little patch
> > redirects with the meta tag.
>
> A server that always returns status 200 is pretty seriously broken.
> I don't think it makes sense to try to make Quixote work with such a
> server.

Hi,

I know. But I like CGIHTTPServer from standard library of python. This
way you don't need any "real" HTTP Server.

But if you don't want to include it into quixote, I can still modify the
respond.redirect method during start_request.

Looking at the source (1.x) I don't see a way to subclass HTTPResponse or
HTTPRequest.

I looked at the code of CGIHTTPServer, but since it supports serveral
platforms, it is not easy to modify.

 Thomas

reply