cgi

Mohamed Najmeddine mnajmeddine at geo.census.gov
Fri Jan 26 13:30:48 EST 2001


I have configured the IIS to run a simple cgi script named hello.cgi and put
the script on the dir c:/inetpub/wwwroot/cgi-bin/. The script is as follows:

print "Content-Type: text/html\n\n"
print "Hello Python"


and I got the following error message:


CGI Error
The specified CGI application misbehaved by not returning a complete set of
HTTP headers. The headers it did return are:


syntax error at c:\inetpub\wwwroot\cgi-bin\hello.cgi line 4, near "print"
Execution of c:\inetpub\wwwroot\cgi-bin\hello.cgi aborted due to compilation
errors.

Any help would be appreciated.
p.s
I have configured the IIS using to run python script using regedit

"C:\python\python.exe %s %s"





More information about the Python-list mailing list