CGIHTTPServer always return 200, no redirects (302) possible
Steve Holden
steve at holdenweb.com
Tue Oct 26 18:04:41 EDT 2004
Thomas Guettler wrote:
> 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
>
If you'd spent the time it took to post your message posting a doc patch
instead then you'd have saved us boith some time ;-)
regards
Steve
--
http://www.holdenweb.com
http://pydish.holdenweb.com
Holden Web LLC +1 800 494 3119
More information about the Python-list
mailing list