raw post data

Alex Martelli aleax at aleax.it
Mon Sep 16 03:45:32 EDT 2002

:B nerdy wrote:

> how would i retrieve the raw post data in cgi python scripts ?

I think something like:

import sys
all_posted_lines = sys.stdin.readlines()

should do it.  Raw POST'ed data should be no more and no less
than the contents of the CGI script's standard-input.


More information about the Python-list mailing list