开发者

sending post data from Iphone

开发者 https://www.devze.com 2023-01-11 16:55 出处:网络
I want to send post data from Iphone. I have to send a dictionary(K-V pairs) w开发者_JAVA技巧ith 8 k-v pairs.

I want to send post data from Iphone.

I have to send a dictionary(K-V pairs) w开发者_JAVA技巧ith 8 k-v pairs.

What is the best way to post all these 8 K-V pairs from Iphone. I want that i should pass only Id(one of K-V pair)in the URL & remaining K-V pairs should be sent via post.

if there is something like that??


I wrote a couple blog posts using NSURLConnection. One was specifically for sending POST data. Check them out. You can't send some data with GET and some data with POST. You have to commit to all one way.

Sending POST DATA

Using NSURLConnection

HTH


The HTTP protocol doesn't work like that. Pick POST or GET. This library makes web requests easy, including file upload: http://allseeing-i.com/ASIHTTPRequest/

0

精彩评论

暂无评论...
验证码 换一张
取 消