HTTP-Server mit CGI


import CGIHTTPServer, BaseHTTPServer
class Handler(CGIHTTPServer.CGIHTTPRequestHandler):
cgi_directories = ["/cgi-bin"]
 
def startServer():
PORT = 8020
httpd = BaseHTTPServer.HTTPServer(("", PORT), Handler)
httpd.serve_forever()