Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > CGIHTTPServer on Windows?

Thread Tools

CGIHTTPServer on Windows?

Chris Curvey
Posts: n/a
Hi all,

I'm trying to work around my cgi-driving-IE problem by creating my own
server, but CGIHTTPServer on Windows (python 2.3.5) seems to be having
troubles. Trying to run a "hello world" CGI gives me:

COMPAQ.ANTIQUES - - [11/May/2005 07:18:50] "GET /cgi-bin/
HTTP/1.1" 200
COMPAQ.ANTIQUES - - [11/May/2005 07:18:50] command: c:\program
ython.exe -u C:\Documents and Settings\chris\My
Documents\cgi-bin\ ""
COMPAQ.ANTIQUES - - [11/May/2005 07:18:50] 'c:\program' is not
recognized as an
internal or external command,
operable program or batch file.

COMPAQ.ANTIQUES - - [11/May/2005 07:18:50] CGI script exit status 0x1

I tried hacking the source of do_POST to put quotes around the name of
the python executable and the script, but that didn't get me anywhere.
Is there a solution to this, or does this approach require me to use
pathnames without embedded spaces?

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with py2exe-frozen CGIHttpServer-based script vincent wehren Python 3 11-27-2003 05:46 PM
CGIHTTPServer security Breach Andy Worms Python 0 07-22-2003 05:43 PM
Re: Securing PyDoc and CGIHTTPserver Peter Hansen Python 7 07-15-2003 01:03 PM
CGIHTTPserver looze PYTHONPATH vincent delft Python 1 07-13-2003 06:07 PM
Re: Securing PyDoc and CGIHTTPserver Shane Hathaway Python 1 07-11-2003 05:05 PM