Created
January 25, 2012 12:50
-
-
Save martinth/1676117 to your computer and use it in GitHub Desktop.
simple HTTP server that dumps header
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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