Is it possible to send a status code other than 200 via a python cgi script (such as 301 redirect)
+6
A:
via cgi script?
print "\nStatus:301\nLocation: http://www.google.com"
Jiri
2009-05-07 09:35:43
+1
A:
Via wsgi application?
def simple_app(environ, start_response):
status = '301 Moved Permanently' # HTTP Status
headers = [('Location','http://example.com')] # HTTP Headers
start_response(status, headers)
return []
S.Lott
2009-05-07 11:27:24