Skip to content

Instantly share code, notes, and snippets.

@martinth
Created January 25, 2012 12:50
Show Gist options
  • Select an option

  • Save martinth/1676117 to your computer and use it in GitHub Desktop.

Select an option

Save martinth/1676117 to your computer and use it in GitHub Desktop.

Revisions

  1. martinth created this gist Jan 25, 2012.
    8 changes: 8 additions & 0 deletions simple_server.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    import SimpleHTTPServer
    import SocketServer
    class H(SimpleHTTPServer.SimpleHTTPRequestHandler):
    def do_GET(self):
    print self.headers

    httpd = SocketServer.TCPServer(("", 8090), H)
    httpd.server_forever()