[OGo-Developer] multipart/form-data and text encoding
Helge Hess
developer@opengroupware.org
Thu, 23 Aug 2007 21:17:32 +0200
On 23.08.2007, at 21:11, Wolfgang Sourdeau wrote:
> I could do this and then rely on the WOMessageUseUTF8 to parse the
> results. We might as well change
> WOMessageUseUTF8 to WOMessageCharset instead, for the sake people
> using yet another different charset.
Sounds reasonable, though I'm personally not sure why we would
support anything but legacy (Latin1) and UTF-8.
>> There is only one issue which is why the SimpleParser is not
>> enabled by default: it doesn't implement multipart/
>> formdata=>WORequest decoding (which is not that hard, but some
>> work).
> I already did such a parser in perl a few years ago, I think I
> could write one very quickly.
Its not really hard. But it would be really nice (but no initial
requirement) if it would work efficiently with large (file) uploads
by streaming them to a mapped file. There is a special NSData object
for that, which is in fact used in the simple parser for WebDAV PUT,
which is why it is recommended for ZideStore.
Thanks,
Helge
--
Helge Hess
http://www.helgehess.eu/