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 PROTECTED]> 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 (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:
http://lists.apple.com/mailman/options/cocoa-dev/openspecies%40gmail.com

This email sent to [EMAIL PROTECTED]




--
-mmw

_______________________________________________

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to