title: How to read all HTTP headers in Python CGI script?
body: <p>I have a python CGI script that receives a POST request containing a specific HTTP header. How do you read and parse the headers received? I am not using <code>BaseHTTPRequestHandler</code> or <code>HTTPServer</code>. I receive the body of the post with <code>sys.stdin.read()</code>. Thanks.</p>