Re: how to change response code in CGIHTTPServer.py

2009-05-29 Thread Jeff McNeil
On May 28, 2:23 pm, Daniel wrote: > Hello, > > Python 2.5.2 > WinXP > > I'm using CGIHTTPServer.py and want to return a response code of 400 > with a message in the event that the cgi script fails for some > reason.  I notice that > run_cgi(self): > executes this line of code, > self.send_response

how to change response code in CGIHTTPServer.py

2009-05-28 Thread Daniel
Hello, Python 2.5.2 WinXP I'm using CGIHTTPServer.py and want to return a response code of 400 with a message in the event that the cgi script fails for some reason. I notice that run_cgi(self): executes this line of code, self.send_response(200, "Script output follows") which overwrites any hea