comparison pythonServer-legacy.py @ 0:d2eb0e6ccaaf

initial commit
author Giulio Moro <giuliomoro@yahoo.it>
date Wed, 20 Apr 2016 16:26:57 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:d2eb0e6ccaaf
1 import SimpleHTTPServer
2 import SocketServer
3
4 PORT = 8080
5
6 Handler = SimpleHTTPServer.SimpleHTTPRequestHandler
7
8 httpd = SocketServer.TCPServer(("", PORT), Handler)
9
10 print "serving at port", PORT
11 httpd.serve_forever()