CGIHTTPServer always return 200, no redirects (302) possible
Thomas Guettler
guettli at thomas-guettler.de
Tue Oct 26 09:54:07 EDT 2004
Hi,
The CGIHTTPServer returns
self.send_response(200, "Script output follows")
before it starts the cgi process. This means
you cannot set the status header to 302 for
a redirect.
I don't see a easy and portable way to fix this.
CGIHTTPServer.py:
http://cvs.sourceforge.net/viewcvs.py/python/python/dist/src/Lib/CGIHTTPServer.py?rev=1.36&view=auto
Maybe a little note in the docs would save some
people 30-60 minutes of their sparetime.
Thomas
More information about the Python-list
mailing list