durusmail: quixote-users: mod_python and request body
mod_python and request body
2003-09-19
2003-09-20
mod_python and request body
John Belmonte
2003-09-20
I wrote:
> When running Quixote under CGI, I can access the HTTP request body with
> sys.stdin.read().  However, under mod_python, someone seems to be
> consuming stdin.  Why the difference, and what is the correct way to
> access the request body (ideally it would be consistent between CGI and
> mod_python)?

I found that the correct way to access the request body is with
request.stdin.read().

HTTPRequest.stdin is not documented.


--
http:// if   le.o  /


reply