Maybe there is something better than NSURLConnection for this?
I want to:
- Fetch XML files from web servers
- Either via http or https
Maybe even with authentification (username, password)
开发者_StackOverflow中文版
Post data to an web server
Right now I only know NSURLConnection is my best friend. But maybe there is something even better in the SDK? Just want to make sure. Not complaining about NSURLConnection.
NSURLConnection is usually your best bet. It's the preferred method to access web resources. Be sure to check out NSURLConnection SSL HTTP Basic Auth to see how to use SSL. If your're debugging and your certificate is not quite trusted, check out: How to use NSURLConnection to connect with SSL for an untrusted cert?.
精彩评论