Posted by Alcides Fonseca on Fri 13 Jul 15:50
report abuse | download | new post
- import CGIHTTPServer
- import BaseHTTPServer
- class Handler(CGIHTTPServer.CGIHTTPRequestHandler):
- cgi_directories = ["/cgi"]
- PORT = 8080
- httpd = BaseHTTPServer.HTTPServer(("", PORT), Handler)
- print "serving at port", PORT
- httpd.serve_forever()
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.