从Iphone发送帖子数据 [英] sending post data from Iphone

查看:99
本文介绍了从Iphone发送帖子数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从Iphone发送帖子数据。

我必须发送一个8 kv对的字典(KV对)。

发布所有内容的最佳方式是什么这些来自Iphone的8 KV对。
我希望我只能在URL&中传递Id(K-V对中的一个)剩下的KV对应该通过post发送。

如果有类似的东西??

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 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??

推荐答案

我用NSURLConnection写了几篇博文。一个专门用于发送POST数据。去看一下。您不能使用GET发送一些数据,而使用POST发送一些数据。你必须全力以赴。

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.

发送POST数据

使用NSURLConnection

HTH

这篇关于从Iphone发送帖子数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆