q about cgi.FieldStorage

Ames Andreas (MPA/DF) Andreas.Ames at tenovis.com
Mon Aug 9 07:37:07 EDT 2004


Hi,

Tim Roberts wrote:

> Not in its raw form.  The stream comes from Apache and evaporates as
> it is read.  If you need to raw data, just forget about
> cgi.FieldStorage and read stdin directly.  You can always copy it to
> a temp file or StringIO and feed it back to the cgi module later.

thanks for confirming this.  The only problem I see with your
suggestion, or rather with the implementation, is that the caller has
seemingly no control over whether FieldStorage writes the input to
disk once more or not.


cheers,

andreas




More information about the Python-list mailing list