view pythonServer-legacy.py @ 2217:cb27ece65a5c

Review for Issue #2. Should be a working implementation. See issue post for usage.
author Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk>
date Tue, 12 Apr 2016 11:48:40 +0100
parents 175cf75946f7
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()