Mercurial > hg > webaudioevaluationtool
view pythonServer-legacy.py @ 750:c9c010690d56
Python server ignores GET in URL
author | Nicholas Jillings <nicholas.jillings@eecs.qmul.ac.uk> |
---|---|
date | Mon, 21 Dec 2015 13:01:01 +0000 |
parents | 07c996307cbd |
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()