Re: Saving files from post data via sys.stdin
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.python archive

Re: Saving files from post data via sys.stdin

From: ACB <amy.berry@cox.net>
Date: Tue Apr 11 2006 - 05:32:24 CEST

> form = cgi.FieldStorage()
>
> for k in form.keys():
> do_something_with(form, k)
>
>> Is there some class that can take this input and make it easier to deal
>> with?
>
> A dictionary.
>
> I need to
>> save each of the ulimage values as individual images and gain access to
>> the values of sessionid and userid.
>>

James,

Thanks for the reply, however... the problem I am having is that I need to
use the data via sys.stdin and not the cgi.FormStorage object because cgi
only takes the data after it has all been received.

So, I need a good way to parse the data in sys.stdin unless their is some
built-in way to do it.

Thanks
Received on Sun Apr 30 22:46:45 2006