HTTP redirect via Python?

Christian Thurner cthurner at web.de
Tue Mar 27 04:02:43 EST 2001


John E. Barham wrote:

> Apologies if this is too basic a question, but I'm wondering how I can
> send a redirect/URL rewrite command to a browser via Python.
Just do the following:

print "Location: http://your.safe.url\n\n"

that's all

CU
Christian





More information about the Python-list mailing list