annotate pythonServer.py @ 2021:094b3a72978b

Create_Test: Creates XML Document.
author Nicholas Jillings <nickjillings@users.noreply.github.com>
date Wed, 03 Jun 2015 12:07:07 +0100
parents bc550d00cb6d
children e08f2b155d8b
rev   line source
nickjillings@1591 1 import SimpleHTTPServer
nickjillings@1591 2 import SocketServer
nickjillings@1591 3
nickjillings@1591 4 PORT = 8080
nickjillings@1591 5
nickjillings@1591 6 Handler = SimpleHTTPServer.SimpleHTTPRequestHandler
nickjillings@1591 7
nickjillings@1591 8 httpd = SocketServer.TCPServer(("", PORT), Handler)
nickjillings@1591 9
nickjillings@1591 10 print "serving at port", PORT
nickjillings@1591 11 httpd.serve_forever()