view pythonServer-legacy.py @ 2058:003e98fdbf51

merge
author Nicholas Jillings <nickjillings@users.noreply.github.com>
date Wed, 01 Jul 2015 11:11:54 +0100
parents c115a0b304b3
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()