view pythonServer-legacy.py @ 1304:3abbe1cc81ca

The version I use and works, addresses issues #1622, #1616, partially #1620
author Giulio Moro <giuliomoro@users.noreply.github.com>
date Mon, 22 Feb 2016 04:17:19 +0000
parents
children
line wrap: on
line source
import SimpleHTTPServer
import SocketServer

PORT = 8080

Handler = SimpleHTTPServer.SimpleHTTPRequestHandler

httpd = SocketServer.TCPServer(("", PORT), Handler)

print "serving at port", PORT
httpd.serve_forever()