from nsurlconnection to https/ssl

Discussion in 'iPhone/iPad Programming' started by mobdev, Feb 9, 2012.

  1. macrumors newbie

    Joined:
    Feb 9, 2012
    Messages:
    2
    #1
    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
     
  2. Moderator

    robbieduncan

    Staff Member

    Joined:
    Jul 24, 2002
    Messages:
    24,480
    Location:
    London
    #2
    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. macrumors newbie

    Joined:
    Feb 9, 2012
    Messages:
    2
    #3
    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

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Messages:
    15,045
    Location:
    The Centennial State
    #4
    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