开发者

How to exchange data with an webserver the secure way?

开发者 https://www.devze.com 2023-01-26 08:49 出处:网络
I have an web application running on a server. It has an API which I can access with https://mywebservice.org/private/secretStatistics.xml?token=X59FG43VPT

I have an web application running on a server. It has an API which I can access with https://mywebservice.org/private/secretStatistics.xml?token=X59FG43VPT

When the token is correct (like a password), then I get 开发者_Python百科back an XML. I import it with NSXMLParser to Core Data.

I thought about using NSURLConnection to download that XML. Is this my best bet on iOS? How hard is it to download from an https secured source?

And can I add additional authentification credentials? On the server side, I can easily set up that the server asks for username and password before returning the XML.

Which classes would I use to SEND data to a server? Also NSURLConnection?


Yes HTTPS is the best choice. and Yes NSURLConnection supports https.

0

精彩评论

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

关注公众号