CGI Redirect

Gabriel Ambuehl gabriel_ambuehl at buz.ch
Tue May 1 11:24:51 EDT 2001


-----BEGIN PGP SIGNED MESSAGE-----

Hello Ben,

Tuesday, May 01, 2001, 5:10:16 PM, you wrote:

> 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";

This should work without the trailing semicolon in Python (assuming
that
nothing outputs any other headers before, of course!).


Best regards,
 Gabriel

-----BEGIN PGP SIGNATURE-----
Version: PGP 6.0.2i

iQEVAwUBOu7HN8Za2WpymlDxAQFC0gf/dy0r9t5m+YcOS8b1c1p3wbRIgwEN8DKG
yN31eeFSEEKcxijBzO9As2rDKAyk5ZaeiCXkoWxGgYbvy5O4PFxrdgJ/mQVqn725
FVMmSBfeVdNbij8hRXm9yX8EhplhabnuVEDMxWz6ouUd5+7LN5h01oY/238Y/yle
atH4ZEPP0zS4SmsylNnuwjVkP6V7KmbPX1/L8Fg48wGgPmvklFRGRaTstQ5ipE/7
f7s/xQnco4kmJVim+lClmzp6j9f6OEKtk6OcE0TwzuJEHbDtKULiGRhdeO4T6fUa
WU7+D4r1G45FKPbE3H0gerYIP95L+Ua8QeQOCQnB8DbL2ZRtQcYlNA==
=AXwC
-----END PGP SIGNATURE-----






More information about the Python-list mailing list