PDA

View Full Version : from nsurlconnection to https/ssl




mobdev
Feb 9, 2012, 02:42 AM
Hi there,

I am a noob ios developer and need your help. May you please enlighten me. :)

Right now the app that I am working on is using the standard NSURLConnection to communicate with the web service. I wanted to switch to a secure connection (https/ssl). How will I do that?

Thanks ahead!


-mobdev



robbieduncan
Feb 9, 2012, 04:09 AM
Which documents have you read to try and solve your problem yourself. The ability to read, understand and use the API documentation is at least as important as raw ability to write code to any useful developer.

Specifically I would look at the NSURL documentation and your code where you create the NSURL object to use with the NSURLRequest.

mobdev
Feb 9, 2012, 08:05 PM
I have read documentation provided by Apple and forums/blogs regarding the use of https connection.

Still, I am puzzled on how to switch from NSURLConnection to https connection. This task was just assigned to me. Our app is using the standard NSURLConnection and it works perfectly but our Lead wants to switch it to https connection.

dejo
Feb 10, 2012, 12:39 AM
I have read documentation provided by Apple and forums/blogs regarding the use of https connection.

What documentation? What forums? What blogs? Be specific.

Still, I am puzzled on how to switch from NSURLConnection to https connection. This task was just assigned to me. Our app is using the standard NSURLConnection and it works perfectly but our Lead wants to switch it to https connection.

You don't switch. NSURLConnection is used in conjunction with http:// or https://. Make sure you have given the URL Loading System Programming Guide (https://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/URLLoadingSystem/URLLoadingSystem.html#//apple_ref/doc/uid/10000165-BCICJDHA) a good read.