开发者

Connecting between iPhone and server

开发者 https://www.devze.com 2023-01-19 00:09 出处:网络
I am iPhone developer. I have used JSON framework to communicate between iphone and server, send and receive response. But besides JSON, I would like to know more framework that allow us to communicat

I am iPhone developer. I have used JSON framework to communicate between iphone and server, send and receive response. But besides JSON, I would like to know more framework that allow us to communicate between iphone and server. Do you suggest some fr开发者_运维知识库amework?

Thanks and best regards


REST, XML, HTML and parsing… the possibilities are endless. The best protocols to use so that you can use open-sourced and well tested code are JSON and XML


ASIHTTPRequest makes the communictaion to HTTP-Server really easy. You can send/retrieve JSON, XML, HTML, Files,...

cocoahttpserver allows you to start your own Web server on the device. Again JSON, XML, HTML, Files,...

edit sending files to server

ASIFormDataRequest *request = [ASIFormDataRequest requestWithURL:url];
[request setFile:@"/Users/ben/Desktop/ben.jpg" forKey:@"photo"];
0

精彩评论

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