Parse multipart/form-data parameters
Automatically parse parameters from HTML forms into the params dictionary.
Need to consider large uploads or at least enforce a maximum size.
First, I think what you have done is awesome and makes CocoaHTTPServer very easy to use!
I'm using ASIFormDataRequest from the ASIHTTPRequest project, and was wondering how you would recommend retrieving the post values from the request body. I'm not an HTTP pro, so I'm not exactly sure how it all should be parsed. I tried using [request param:@"myPostValueKey"], but that didn't work.
Thanks!
Thanks, glad you've found it useful! Right now form data is just delivered in its raw form which you can get at with [request body]. I'm afraid I don't have any code to parse it yet, but you might be able to find a class or library where someone has done this already.
Thanks for the fast response! Ok no problem--I will look for a parser and I'll let you know if I come up with anything.