iam currently using NSURLConnection class to hit my server and get some data from it. The server link will be something like this http://sample.com/sample/sampleinformation. But, as we know use of simple “http” is not very secure and is vulnerable to attacks. Is there a way in which i can use “https” links instead of “http”????
iam currently using NSURLConnection class to hit my server and get some data from
Share
Simply change the NSURL used in your NSURLConnection to have “https://” at the beginning instead of “http://”. That should be enough to signal to the server that you want to encrypt the transmission.
This adds a bit of overhead to your request so don’t use it unless it’s necessary.