raw post data

:B nerdy thoa0025 at mail.usyd.edu.au
Tue Sep 17 00:01:16 EDT 2002


how could i make it so when i read the stdin it still is there.. cause i use
cgi.FormVariables() also

cheers

"Alex Martelli" <aleax at aleax.it> wrote in message
news:w_fh9.113093$pX1.4054147 at news2.tin.it...
> :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.
>
>
> Alex
>





More information about the Python-list mailing list