开发者

Send HTTP Request TO iPhone?

I have an app where the iPhone sends data to a server and the serve开发者_StackOverflowr manipulates that data. I need a way of getting the manipulated data back to the iPhone. How can the iPhone know when the data is done being manipulated and how does it get it back?

I've been looking for ways to do this with NSURLConnection but I have had no luck.


Assuming you'd like to use HTTP for this, you would probably have the iPhone poll the server (periodically or upon user request) with some sort of ID, and the server would return an appropriate response (either the processed data or some sort of "still processing" message). The URL might look like: http://myserver/data_processing_thingy?id=some_unique_id

NSURLConnection is quite simple to use for HTTP GET requests, simply Google or StackOverflow it.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜