view pythonServer-legacy.py @ 733:abc064e1a97e

Few changes
author Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk>
date Wed, 14 Oct 2015 09:13:37 +0100
parents 0b095f66de65
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()