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()