A simple Python CGI server?
From: Dfenestr8 (chrisdewinN0SPAM_at_yahoo.com.au)
Date: 10/31/03
- Next message: Florian Reiser: "Re: Registering a COM object in Python"
- Previous message: Frantisek Fuka: "Boolean confusion"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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?
- Next message: Florian Reiser: "Re: Registering a COM object in Python"
- Previous message: Frantisek Fuka: "Boolean confusion"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]