[python-win32] Python CGI problem

Mark Hammond mhammond@skippinet.com.au
Fri, 6 Dec 2002 10:44:45 +1100


I don't think you want the '-' before either %s

My guess is that your script file is on your D: - thus, Python will see

python -u -D:\....

Mark.

> -----Original Message-----
> From: python-win32-admin@python.org
> [mailto:python-win32-admin@python.org]On Behalf Of Mikael Engdahl
> Sent: Thursday, 5 December 2002 2:35 AM
> To: python-win32@python.org
> Subject: [python-win32] Python CGI problem
> 
> 
> Hello.
> 
> I'm having trouble setting up Python for CGI use on IIS. I think I have 
> done the Application Extension Mapping right, mapping the extension .cgi 
> to C:\Python22\python.exe -u -%s -%s. But when I try to view it I get 
> this reply:
> 
> CGI Error
> The specified CGI application misbehaved by not returning a complete set 
> of HTTP headers. The headers it did return are:
> 
> Unknown option: -D
> usage: C:\Python22\python.exe [option] ... [-c cmd | file | -] [arg] ...
> Try `python -h' for more information.
> 
> 
> It seems to me that IIS adds a -D option when executing python. Why? And 
> how do I avoid this?
> 
> Thanks!
> 
> Mikael Engdahl
> 
> 
> _______________________________________________
> Python-win32 mailing list
> Python-win32@python.org
> http://mail.python.org/mailman/listinfo/python-win32
>