寻找Android等效代码的Android HTTP请求

时间:2011-05-25 17:53:31

标签: iphone android web-services

我有android web服务代码,必须移植到iOS。 android HTTP Request代码中有一行。

httppost.setEntity(new StringEntity(myChallenge));
HttpResponse myResponse = httpclient.execute(httppost); 

我是iOS开发的新手,所以我不清楚如何在iOS编程中移植或编写上述代码。任何帮助都会非常有帮助。在此先感谢。

扎克

1 个答案:

答案 0 :(得分:2)

查看ASIHTTPRequest(Google it)。非常好的HTTP库,具有您建议您熟悉的类似功能集。 (当然,不一样,但是你想做的一切,你可以用ASIHTTPRequest做。)