Re: [Raw] post data
"Jonathan Ellis" <[email protected]>
| Newsgroups | gmane.comp.python.spyce.general |
|---|---|
| Message-ID | <[email protected]> |
On Wed, 7 Dec 2005 10:15:52 +0100, "Lars Eriksen" <[email protected]> said: > Thanks Jonathan, but it does not work the way I use it (mod_python): > > [[\ > req = request._api.getRequest() > print req.read() > ]] > > > It prints nothing. If I use the Spyce standalone server, the script > freezes - seems req.read() blocks. How do I read the raw data from the > request in a mod_python environment? req.read(int(request.env('CONTENT_LENGTH'))) -Jonathan -- C++ is history repeated as tragedy. Java is history repeated as farce. --Scott McKay ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click