[Zope] How to get raw upload data from POST?

marc lindahl marc@bowery.com
Thu, 24 May 2001 12:34:32 -0400


Dig around in OFS/Image.py, you can see how they do it there.

> From: "Brad Clements" <bkc@murkworks.com>
> Organization: MurkWorks, Incorporated.
> Reply-To: bkc@murkworks.com
> Date: Thu, 24 May 2001 11:41:45 -0400
> To: zope@zope.org
> Subject: [Zope] How to get raw upload data from POST?
> 
> I'm working to upload ADO recordsets in XML format.
> 
> I use the XMLHTTP object to POST raw <?xml> text as the "body" of the post.
> 
> Content-Type isn't set in the POST request.
> 
> I'm trying to figure out how to read() the body of the post. Seems the
> FieldStorage is 
> doing something I can't figure out.
> 
> REQUEST.read() doesn't work
> 
> REQUEST.stdin.read() doesn't work (from an external method)
> 
> REQUEST._file is None
> 
> I don't want to fake up a form post.. How do I get at the body of the post
> through 
> REQUEST?
> 
> Brad Clements,                bkc@murkworks.com   (315)268-1000
> http://www.murkworks.com                          (315)268-9812 Fax
> netmeeting: ils://ils.murkworks.com               AOL-IM: BKClements
> 
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )