<filename>examples/webserver.py<gh_stars>1-10
#!/usr/bin/env python
# encoding: utf-8
import SimpleHTTPServer
import SocketServer

PORT = 4711

Handler = SimpleHTTPServer.SimpleHTTPRequestHandler

httpd = SocketServer.TCPServer(('', PORT), Handler)

print 'serving at port', PORT
httpd.serve_forever()
<filename>examples/webserver.py<gh_stars>1-10
#!/usr/bin/env python
# encoding: utf-8
import SimpleHTTPServer
import SocketServer

PORT = 4711

Handler = SimpleHTTPServer.SimpleHTTPRequestHandler

httpd = SocketServer.TCPServer(('', PORT), Handler)

print 'serving at port', PORT
httpd.serve_forever()
#!/usr/bin/env python # encoding: utf-8