How to open a HTML file when the python cgi program is executing?

Kragen Sitaker kragen at
Sat Jun 1 22:12:02 CEST 2002

Sheila King <usenet at> writes:
> print "Location: http://replacement-url\n"
> You should have nothing before this, and there's no point in having
> anything after it, since the page is being redirected.

Some browsers (in particular old versions of Opera) have problems with
redirects every once in a while; that's why redirects traditionally
contain HTML, in case the browser is broken.

More information about the Python-list mailing list