[Zope] Getting data from the body of a post

Dan Ellis dan.ellis at northlindsey.ac.uk
Mon Sep 20 14:37:12 EDT 2004


Kirk Strauser wrote:

> Their middlewear ... just 
> sticks the contents of the file into the body of the post.  Is there an 
> easy way to get at this data?  I can't find the request['BODY'] attribute 
> from inside Python scripts, so I'm at a loss for where to look.

I've been having pretty much the same problem. There may be a better 
answer, but if you use an External Method there is a request.stdin which 
is a file-like object you can read() from.

Dan.

-- 
Dan Ellis <dan.ellis at northlindsey.ac.uk>
Computer Officer, North Lindsey College
01724 294024 (ext. 4024 internally)
Microsoft Certified Professional


More information about the Zope mailing list