view pythonServer-legacy.py @ 350:b448ed356355 Dev_main

Feature #1456. PHP server adds a six character 'hash' to the end of the file.
author Nicholas Jillings <nicholas.jillings@eecs.qmul.ac.uk>
date Mon, 23 Nov 2015 16:02:37 +0000
parents e08f2b155d8b
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()