title: Python: How do I get key/value pairs from the BaseHTTPRequestHandler HTTP POST handler?
body: <p>given the simplest HTTP server, how do I get post variables in a BaseHTTPRequestHandler?</p>
  
  <pre><code>from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer
  
  class Handler(BaseHTTPRequestHandler):
      def do_POST(self):
          # post variables?!
  
  server = HTTPServer(('', 4444), Handler)
  server.serve_forever()
  
  # test with:
  # curl -d "param1=value1&amp;param2=value2" http://localhost:4444
  </code></pre>
  
  <p>I would simply like to able to get the values of param1 and param2. Thanks!</p>