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

Sheila King usenet at thinkspot.net
Sat Jun 1 16:42:43 EDT 2002


On 01 Jun 2002 16:12:02 -0400, Kragen Sitaker <kragen at pobox.com> wrote in
comp.lang.python in article <83n0uevjvx.fsf at panacea.canonical.org>:

> Sheila King <usenet at thinkspot.net> 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.

Printing the Location header is not a "redirect" and should contain no
HTML.

--
Sheila King
http://www.thinkspot.net/sheila/
http://www.k12groups.org/




More information about the Python-list mailing list