Mercurial > hg > webaudioevaluationtool
annotate pythonServer-legacy.py @ 813:f452455b5977
Resolved #1394: Python returns same XML responses as the PHP server
author | Nicholas Jillings <nicholas.jillings@eecs.qmul.ac.uk> |
---|---|
date | Fri, 27 Nov 2015 12:09:49 +0000 |
parents | |
children |
rev | line source |
---|---|
nicholas@813 | 1 import SimpleHTTPServer |
nicholas@813 | 2 import SocketServer |
nicholas@813 | 3 |
nicholas@813 | 4 PORT = 8080 |
nicholas@813 | 5 |
nicholas@813 | 6 Handler = SimpleHTTPServer.SimpleHTTPRequestHandler |
nicholas@813 | 7 |
nicholas@813 | 8 httpd = SocketServer.TCPServer(("", PORT), Handler) |
nicholas@813 | 9 |
nicholas@813 | 10 print "serving at port", PORT |
nicholas@813 | 11 httpd.serve_forever() |