cgihttprequesthandler

Getting OpenSSL and CGIHTTPRequestHandler working in Python for a basic webserver

Hi, I am modifying the code found below to work as a CGI handler. To enable CGI, I modified the HTTPRequestHandler to inherit from CGIHTTPRequestHandler instead. I changed the port to 4443 so that I could run it as non-root. I modified the .pem file to be ./server.pem, which is relative to the path the server script is running on. To...

CGI not working with built-in Python 3.1 http.server

I'm using http.server with the CGIHTTPRequestHandler on OS X 10.6 and the posix code path in run_cgi() does not appear to work properly. I'm calling a located at /cgi-bin/test.py from a form submit. For the better part of this afternoon I was receiving the error 'OSError: [Errno 2] No such file or directory' at the os.execve() line 105...