Re: How to parse multipart/form-data?
On Jan 27, 2012, at 10:29 PM, Kai Cao wrote: > I'm using CocoaHTTPServer to upload files from computer to iOS devices. But > the result NSData received from the browser is multipart form data, which is > really hard to parse manually. I know I can write a parser from scratch, > however, it's time consuming and bug prone. I'm wondering wether there's a > sophisticated library/framework for this. Any help would be appreciated. > Thanks in advance. Google’s GTMHTTPFetcher library has some MIME multipart support, but it might only support generating, not parsing: http://code.google.com/p/gtm-http-fetcher/wiki/GTMHTTPFetcherIntroduction#Uploading_Multipart_MIME_Documents —Jens ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: How to parse multipart/form-data?
CoreParse! https://github.com/beelsebob/CoreParse I hope that helps :) Thanks Tom Davie if (*ra4 != 0xffc78948) { return false; } On 28 Jan 2012, at 06:29, Kai Cao wrote: > Hi, > > I'm using CocoaHTTPServer to upload files from computer to iOS devices. But > the result NSData received from the browser is multipart form data, which is > really hard to parse manually. I know I can write a parser from scratch, > however, it's time consuming and bug prone. I'm wondering wether there's a > sophisticated library/framework for this. Any help would be appreciated. > Thanks in advance. > > Best regards, > > Kai > nonamel...@me.com > > sent from Mobile Me > ___ > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) > > Please do not post admin requests or moderator comments to the list. > Contact the moderators at cocoa-dev-admins(at)lists.apple.com > > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/cocoa-dev/tom.davie%40gmail.com > > This email sent to tom.da...@gmail.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
How to parse multipart/form-data?
Hi, I'm using CocoaHTTPServer to upload files from computer to iOS devices. But the result NSData received from the browser is multipart form data, which is really hard to parse manually. I know I can write a parser from scratch, however, it's time consuming and bug prone. I'm wondering wether there's a sophisticated library/framework for this. Any help would be appreciated. Thanks in advance. Best regards, Kai nonamel...@me.com sent from Mobile Me ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com