import SocketServerimport BaseHTTPServerimport CGIHTTPServerclass ThreadingCGIServer(SocketServer.ThreadingMixIn, BaseHTTPServer.HTTPServer): passimport sysserver = ThreadingCGIServer(('', 8080), CGIHTTPServer.CGIHTTPRequestHandler)try: while 1: sys.stdout.flush() server.handle_request()except KeyboardInterrupt: print "Finished"
Name (required)
email (will not be published) (required)
Website