q about cgi.FieldStorage (was: And now to sth. completely different: Forget about decorators, think cgi.FieldStorage)

Ames Andreas (MPA/DF) Andreas.Ames at tenovis.com
Fri Aug 6 09:29:12 EDT 2004


Hi,

sorry for following-up to myself.  Some remarks:

1) Please excuse the bogus original message. I wrote it a minute
   before I knocked off work and I promise to never do so again :-)

2) What I really wanted to know was:  FieldStorage writes what it
   reads from the stream that is given to its constructor's fp (or
   sys.stdin by default) to a temporary file only _in some cases_.  My
   question was or rather should have been, if it was possible in any
   case to get what FieldStorage has read from its input stream either
   as a string or as a file.

3) After staring at FieldStorage's source code for some time now I
   seem to be sure that this isn't possible because the input stream
   is read to a local variable in some cases, i. e. when the request
   is url-encoded.


cheers,

andreas




More information about the Python-list mailing list