Re: FieldStorage and multiline headers in multipart/form.

2006-04-11 Thread Nick
Mike Looijmans wrote: > Just a thought: Can we (re)use the rfc822 mime parser that's already > built-in in Python to do the work for us? I believe the standard cgi module does just that. I'm probably going to hell for having been importing cgi and replacing parse_qs[l] with the versions from _apa

Re: FieldStorage and multiline headers in multipart/form.

2006-04-11 Thread Mike Looijmans
Short answer: Yes, multiline headers are allowed there, and yes, mod_python will fail to read them properly. Longer answer: I checked throught the util.py code, and nope, the fix is not in there. I browsed through the appropriate RFC documents, in particular RFC1521 http://www.faqs.org/rfcs/rfc

Re: FieldStorage and multiline headers in multipart/form.

2006-04-06 Thread Jim Gallacher
I'll take a look at the code tonight. Jim Graham Dumpleton wrote: With FieldStorage being discussed on main user mailing list, came across this old post of the mailing list: http://www.modpython.org/pipermail/mod_python/2001-November/012256.html What it is saying is that some HTTP clients u