A simple Python CGI server?

From: Dfenestr8 (chrisdewinN0SPAM_at_yahoo.com.au)
Date: 10/31/03


Date: Sat, 01 Nov 2003 04:54:55 +1000

Hi.

I'm just a hobbyist and I like mucking around with cgi scripts.

Here's the script I've been using......

>#! /usr/bin/python
>
>import BaseHTTPServer
>import CGIHTTPServer
>httpd = BaseHTTPServer.HTTPServer(('',8000),
> CGIHTTPServer.CGIHTTPRequestHandler)
>httpd.serve_forever()

For some reason, I get these weird permission errors sometimes when I use
it ... such as:

"OSError: [Errno 13] Permission denied"

Sometimes my scripts produce this error, sometimes they don't. Can anybody
explain this?

Also, can anyone direct me to a script on the web that might do the trick
a little more consistently?


Quantcast