Newbie Question!

fleet at fleet at
Tue Aug 7 18:17:59 CEST 2001

>   From: "Steve Holden" <sholden at>
>Subject: Re: Newbie Question!
>Well I can answer your first question: see
>(which is itself a pure Python web) for a small CGI server in Python. I
>think you'll be surprised how small. Run that from the same directory as an
>index.html file containing your favored HTML page, and access is at

Assume two givens:
  1.  The script works as advertised - attested to by "bob."
  2.  I'm clueless - can be attested to by most regular readers of this list/group for the
past couple of weeks.

I get the following when I attempt to run the script:

[/home/dev/cbamc]$ python
localhost.localdomain - - [07/Aug/2001 11:32:26] code 403, message Directory listing not
localhost.localdomain - - [07/Aug/2001 11:32:26] "GET / HTTP/1.0" 403 -
Traceback (innermost last):
  File "", line 5, in ?
  File "/usr/lib/python1.5/", line 195, in serve_forever
  File "/usr/lib/python1.5/", line 210, in handle_request
    request, client_address = self.get_request()
  File "/usr/lib/python1.5/", line 223, in get_request
    return self.socket.accept()
KeyboardInterrupt <---- me getting out

The directory contains only 'index.html' (rather lengthy) and ''

					- fleet -

More information about the Python-list mailing list