old_contents: import SimpleHTTPServer
  import SocketServer
  import logging
  import cgi
  
  PORT = 8000
  
  class ServerHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
  
      def do_GET(self):
          logging.error(self.headers)
          SimpleHTTPServer.SimpleHTTPRequestHandler.do_GET(self)
  
      def do_POST(self):
          logging.error(self.headers)
          data_string = self.rfile.read(int(self.headers['Content-Length']))
          logging.error(data_string)
          SimpleHTTPServer.SimpleHTTPRequestHandler.do_GET(self)
  
  Handler = ServerHandler
  
  httpd = SocketServer.TCPServer(("", PORT), Handler)
  
  print "serving at port", PORT
  httpd.serve_forever()
  
new_contents: import SimpleHTTPServer
  import SocketServer
  import logging
  import cgi
  
  PORT = 3000
  
  class ServerHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
  
      def do_GET(self):
          logging.error(self.headers)
          SimpleHTTPServer.SimpleHTTPRequestHandler.do_GET(self)
  
      def do_POST(self):
          logging.error(self.headers)
          data_string = self.rfile.read(int(self.headers['Content-Length']))
          logging.error(data_string)
          SimpleHTTPServer.SimpleHTTPRequestHandler.do_GET(self)
  
  Handler = ServerHandler
  
  httpd = SocketServer.TCPServer(("", PORT), Handler)
  
  print "serving at port", PORT
  httpd.serve_forever()
  
subject: set test HTTP server to port 3000