raw post data

:B nerdy thoa0025 at mail.usyd.edu.au
Mon Sep 16 04:22:03 EDT 2002


thanks alex

:B

"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