How can I run CGI script in the CGIHTTPServer?

jun won, Seo linuxqna at chollian.net
Tue Sep 19 01:41:13 CEST 2000


Hi,
I programmed following code
-----------------------------------------------
from BaseHTTPServer import HTTPServer
from CGIHTTPServer import CGIHTTPRequestHandler

class CgiHandler(CGIHTTPRequestHandler):
        def do_GET(self):
                      .
                      .
                      .
                      .

server = HTTPServer(('',8080), CgiHandler)
server.serve_forever()
----------------------------------------------------

examply,
I typed my browser "http://myserver:8080/run.cgi

How can I run run.cgi, and return that run result?




More information about the Python-list mailing list