Is there any obvious reson why the basic CGIHTTPServer doesn't work ?
While its not really suitable for production, it would be handy to be
able to have everything in one directory for development and it means I
don't have to mess with my existing webserver just to try Quixote out.
[ richard@fey ] cat server.py
#! /usr/bin/python
import CGIHTTPServer
import BaseHTTPServer
CGIHTTPServer.cgi_directories = ['.']
httpd = BaseHTTPServer.HTTPServer(('', 8080),
CGIHTTPServer.CGIHTTPRequestHandler)
httpd.serve_forever()
Using the above as my server I get the following output
fey.whitequeen.com - - [23/Mar/2002 11:44:55] "GET /cgi-bin/demo.cgi
HTTP/1.1" 200 -
fey.whitequeen.com - - [23/Mar/2002 11:44:57] CGI script exit status 0x100
[ richard@fey ] wget http://fey:8080/cgi-bin/demo.cgi
--11:47:06-- http://fey:8080/cgi-bin/demo.cgi
=> `demo.cgi'
Resolving fey... done.
Connecting to fey[192.168.2.6]:8080... connected.
HTTP request sent, awaiting response... 200 Script output follows
End of file while parsing headers.
Retrying.
Any thoughts ?
richard.
--
richard offer @ home DSS 3072/1024 0x8AFBBFA3
84 FE 48 E4 74 D0 26 D4 31 8E B6 86 98 74 E2 7C 8A FB BF A3
_____________________________http://www.whitequeen.com/users/richard/