Re: Parse form values from HTTP POST
Re: Parse form values from HTTP POST
- Subject: Re: Parse form values from HTTP POST
- From: Jesse Grosjean <email@hidden>
- Date: Wed, 20 Aug 2008 22:07:06 -0400
That link is close, but it looks like soap just puts XML in the
body... wish that was the way that FORM POSTs did it to, but it
doesn't seem to work that way. Instead it looks like FORMS send their
data in x-www-form-urlencoded.
So now at least I have a more specific question. Is there any OS X
framework for decoding x-www-form-urlencoded, or sample code floating
around. I've found what I need in Java:
http://kickjava.com/src/java/net/URLDecoder.java.htm
And while it's not that much code, it seems like the kind of thing
that must have been done before. Anyway I'll start on my own
implementation, but if someone can point me to an existing solution
for decoding x-www-form-urlencoded that would make my day :)
Thanks,
Jesse
http://developer.apple.com/samplecode/CocoaSOAP/listing7.html
On Wed, Aug 20, 2008 at 1:54 PM, Jesse Grosjean
<email@hidden> wrote:
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?
Thanks for any help.
Jesse
_______________________________________________
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
--
-mmw
_______________________________________________
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