morristech
8/8/2018 - 1:16 PM

simple HTTP server that dumps header

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