from nsurlconnection to https/ssl

Discussion in 'iOS Programming' started by mobdev, Feb 9, 2012.

  1. macrumors newbie

    Feb 9, 2012
    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!

  2. Moderator emeritus


    Jul 24, 2002
    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.
  3. thread starter macrumors newbie

    Feb 9, 2012
    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.
  4. Moderator


    Staff Member

    Sep 2, 2004
    The Centennial State
    What documentation? What forums? What blogs? Be specific.

    You don't switch. NSURLConnection is used in conjunction with http:// or https://. Make sure you have given the URL Loading System Programming Guide a good read.

Share This Page