view pythonServer.py @ 1626:6ac530266da3

Added new python2.py server. Currently as GET server. Rejects all but localhost access
author Nicholas Jillings <nickjillings@users.noreply.github.com>
date Tue, 26 May 2015 15:00:40 +0100
parents 45d3860b350a
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()