Re: Parse form values from HTTP POST
Re: Parse form values from HTTP POST
- Subject: Re: Parse form values from HTTP POST
- From: "Jonathan del Strother" <email@hidden>
- Date: Thu, 21 Aug 2008 10:18:10 +0100
On Thu, Aug 21, 2008 at 9:17 AM, Thomas Engelmeier
<email@hidden> wrote:
>
> Am 20.08.2008 um 22:54 schrieb Jesse Grosjean:
>
>> Does anyone know what the best way to parse form values from and HTTP Post
>> is?
>>
>> I have a mini HTTP server in my app, and it needs to accept posts. I'm
>> using CFHTTP to implement the server, so I have a CFHTTPMessageRef. I'm
>> trying to figure out how to turn that into a dictionary of keys and values.
>> Is there an API that can do this, or any example code around?
>
> No solution (debugging POST packets sucks IMO...) but all the Web API hype
> is now with AJAX + REST, which uses HTTP GET + "everything is in the URI" -
> are you sure you need POST?
>
Eh? REST uses both GET and POST (and tries really really hard to do
PUT & DELETE despite the crippled support for it). POST is generally
used for carrying data to modify a resource - sticking all that in the
URI is a gross misuse of GET.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden