CGIHTTPServer on Windows?

Discussion in 'Python' started by Chris Curvey, May 11, 2005.

  1. Chris Curvey

    Chris Curvey Guest

    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/hello.py
    HTTP/1.1" 200
    -
    COMPAQ.ANTIQUES - - [11/May/2005 07:18:50] command: c:\program
    files\python235\p
    ython.exe -u C:\Documents and Settings\chris\My
    Documents\cgi-bin\hello.py ""
    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?
     
    Chris Curvey, May 11, 2005
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Peter Hansen

    Re: Securing PyDoc and CGIHTTPserver

    Peter Hansen, Jul 10, 2003, in forum: Python
    Replies:
    7
    Views:
    455
    Peter Hansen
    Jul 15, 2003
  2. Shane Hathaway

    Re: Securing PyDoc and CGIHTTPserver

    Shane Hathaway, Jul 10, 2003, in forum: Python
    Replies:
    1
    Views:
    402
    Shane Hathaway
    Jul 11, 2003
  3. vincent delft

    CGIHTTPserver looze PYTHONPATH

    vincent delft, Jul 13, 2003, in forum: Python
    Replies:
    1
    Views:
    473
    vincent_delft
    Jul 13, 2003
  4. Andy Worms

    CGIHTTPServer security Breach

    Andy Worms, Jul 22, 2003, in forum: Python
    Replies:
    0
    Views:
    386
    Andy Worms
    Jul 22, 2003
  5. vincent wehren
    Replies:
    3
    Views:
    422
    vincent wehren
    Nov 27, 2003
Loading...

Share This Page