CGIHTTPServer howto?
Chui Tey
tey.chui.cg at bhp.com.au
Sun Sep 5 04:41:22 EDT 1999
Hi,
I'm new to python and playing around with CGIHTTPServer. Executed test() and
got an instant http server (wow!). Next, I tried to execute a test cgi
script but couldn't get it to run.
code 403 : CGI script is not executable ('/cgi-bin/cgitest.py')
I'm running Win95, any pointers?
#! 'C:\\PROGRAM FILES\\CHUITEY\\BIN\\PYTHON.EXE'
# cgitest.py
#
print "Content-type: text/html" # HTML is following
print # blank line, end of headers
print "<TITLE>CGI script output</TITLE>"
print "<H1>This is my first CGI script</H1>"
print "Hello, world!"
Thanks in advance
Chui
More information about the Python-list
mailing list