sending post data from Iphone

后端 未结 2 1533
眼角桃花
眼角桃花 2021-01-24 22:10

I want to send post data from Iphone.
I have to send a dictionary(K-V pairs) with 8 k-v pairs.
What is the best way to post all these 8 K-V pairs from Iphone. I want th

相关标签:
2条回答
  • 2021-01-24 22:52

    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

    0 讨论(0)
  • 2021-01-24 22:53

    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 讨论(0)
提交回复
热议问题