view pythonServer.py @ 958:39e56b863075

If projectReturn is specified as a url it will return to that server. Currently only tested using the localHost server on port 8000, as per the python2.py server included
author Nicholas Jillings <nicholas.jillings@eecs.qmul.ac.uk>
date Tue, 26 May 2015 18:47:59 +0100
parents 5ad6a3102921
children e08f2b155d8b
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()