annotate pythonServer-legacy.py @ 1450:bc074d4ee760

Resolved #1394: Python returns same XML responses as the PHP server
author Nicholas Jillings <nickjillings@users.noreply.github.com>
date Fri, 27 Nov 2015 12:09:49 +0000
parents
children
rev   line source
nickjillings@1450 1 import SimpleHTTPServer
nickjillings@1450 2 import SocketServer
nickjillings@1450 3
nickjillings@1450 4 PORT = 8080
nickjillings@1450 5
nickjillings@1450 6 Handler = SimpleHTTPServer.SimpleHTTPRequestHandler
nickjillings@1450 7
nickjillings@1450 8 httpd = SocketServer.TCPServer(("", PORT), Handler)
nickjillings@1450 9
nickjillings@1450 10 print "serving at port", PORT
nickjillings@1450 11 httpd.serve_forever()