Referrer key missing form os.environ dictionary?

Robert Kern robert.kern at gmail.com
Thu Sep 26 06:15:40 EDT 2013


On 2013-09-26 04:25, Chris Angelico wrote:
> On Thu, Sep 26, 2013 at 11:32 AM, Terry Reedy <tjreedy at udel.edu> wrote:
>> Since CGI uses stdout for the finished product, it could have used stdin for
>> the input.
>
> Haven't used CGI in years, but I thought POST data came on stdin?

You could just put the whole HTTP request, headers and body, through stdin and 
just make the program parse them apart.

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
  that is made terrible by our own mad attempt to interpret it as though it had
  an underlying truth."
   -- Umberto Eco




More information about the Python-list mailing list