view pythonServer-legacy.py @ 493:1fc9f982b778 Dev_main

Added Pseudo-random test loading for PHP. Runs of the tests completed count, same as PHP, so multiple requests at the same time will load the same test.
author Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk>
date Tue, 26 Jan 2016 18:18:55 +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()