Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse multipart/form-data parameters #3

Open
mattstevens opened this issue Dec 21, 2011 · 4 comments
Open

Parse multipart/form-data parameters #3

mattstevens opened this issue Dec 21, 2011 · 4 comments

Comments

@mattstevens
Copy link
Owner

Automatically parse parameters from HTML forms into the params dictionary.

@mattstevens
Copy link
Owner Author

Need to consider large uploads or at least enforce a maximum size.

@amigi
Copy link

amigi commented Feb 28, 2012

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!

@mattstevens
Copy link
Owner Author

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.

@amigi
Copy link

amigi commented Feb 28, 2012

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.

fr0l pushed a commit to fr0l/RoutingHTTPServer that referenced this issue Jan 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants