title: iOS: How to make a secure HTTPS connection to pass credentials?
body: <p>I am creating my first iPad app. I have a web application that I would like to authenticate against and pull data from in a RESTful way.</p>
  
  <p>If you open up the URL in the browser (<a href="https://myapp.com/auth/login" rel="nofollow noreferrer">https://myapp.com/auth/login</a>), you will get a form to enter your username and password. I was thinking I could set the login credentials in the post data of the request and submit the data.</p>
  
  <p>The site uses HTTPS for login so that credentials aren't passed in plain text over the internet. </p>
  
  <p>How can I make a secure HTTPS connection to pass credentials? Will this remember that I am logged in for future requests? What is the best way to do this?</p>