cgi post
Skip Montanaro
skip at mojam.com
Sun Sep 5 17:51:52 EDT 1999
>> Right now, I am opening the file and spam.com and then printing it..
>> what if the file is some where else and I would like to direct the
>> user to that site..
Magnus> Just print a header like this:
Magnus> Content-type: text/html
Magnus> Location: spam.com
Magnus> The user will then be redirected to spam.com without any problems.
Actually, you need to remember that the value of the Location header must be
a URL, e.g.:
Content-type: text/html
Location: http://www.spam.com/
body starts after the blank line...
Skip Montanaro | http://www.mojam.com/
skip at mojam.com | http://www.musi-cal.com/~skip/
847-971-7098 | Python: Programming the way Guido indented...
More information about the Python-list
mailing list