CGI Redirect

Remco Gerlich scarblac at pino.selwerd.nl
Tue May 1 14:35:42 EDT 2001


Ben Ocean <zope at thewebsons.com> wrote in comp.lang.python:
> Hi;
> I'm writing a CGI script and I need to redirect the visitor to another page 
> (as opposed to posting their form data). How do I do this? The perl 
> equivalent would be:
> print "Location:http://blah.com\n\n";

There should be a space after Location: . And Python's print adds one \n
by itself, so the second one isn't necessary. Maybe the missing space is the
problem? This really shouldn't depend on the language, it's a CGI problem.

-- 
Remco Gerlich



More information about the Python-list mailing list