CGI and Redirect

Gerhard Häring gh at ghaering.de
Tue Feb 21 08:59:18 EST 2006


Grzegorz Ślusarek wrote:
> Hi All. I need to redirect user in my CGI script,  i Try to use prin 
> "Location: "+url but this is not working. Can anyone tell me what I'm 
> doing wrong?
> Any thanks will be apreciated

I guess you forgot to set the HTTP-Status. Either:

print "Status: 301"	# Moved Permanently

or

print "Status: 302"	# Moved Temporarily

HTH,

-- Gerhard



More information about the Python-list mailing list