Skip to content

Instantly share code, notes, and snippets.

@martinth
Created January 25, 2012 12:50
Show Gist options
  • Save martinth/1676117 to your computer and use it in GitHub Desktop.
Save martinth/1676117 to your computer and use it in GitHub Desktop.
simple HTTP server that dumps header
import SimpleHTTPServer
import SocketServer
class H(SimpleHTTPServer.SimpleHTTPRequestHandler):
def do_GET(self):
print self.headers
httpd = SocketServer.TCPServer(("", 8090), H)
httpd.server_forever()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment