Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>If the question is how to log in to your server, the implementation details will differ a little based upon how your server authenticates a "login". One model is a simple HTTP POST. The other model is <a href="http://developer.apple.com/library/ios/documentation/Cocoa/Conceptual/URLLoadingSystem/Articles/AuthenticationChallenges.html#//apple_ref/doc/uid/TP40009507-SW1" rel="nofollow noreferrer">authentication challenges</a> as discussed in the <em>URL Loading System Programming Guide.</em> </p> <p>If you don't know which style your web server has employed, you can generally figure it out if you try to access one of the secured files using a URL from your web browser. Your server is employing authentication challenges if you see a screen like this:</p> <p><img src="https://i.stack.imgur.com/cJOgW.png" alt="authentication challenge"></p> <p>If you don't see a web browser generated pop-up, but rather see something like a HTML "please log in" message, then you probably have to do the POST login process. Note, if your server is using this sort of process, if the success or failure of the login is reported via an HTML page, having your app decipher that is a little bit of a hassle. If would be ideal if you had a version of the login page that provided a JSON or XML response, instead of a HTML response. I don't know if you have the latitude to do that on your server, but it will greatly simply your iOS development if you could do it that way.</p> <p>If you're logging in doing a POST, see the <a href="http://developer.apple.com/library/ios/samplecode/SimpleURLConnections/Introduction/Intro.html#//apple_ref/doc/uid/DTS40009245" rel="nofollow noreferrer">SimpleURLConnections sample app</a> for demonstrations on how to make simple POST (and GET) requests of your web server.</p> <p>See the <a href="http://developer.apple.com/library/ios/samplecode/AdvancedURLConnections/Introduction/Intro.html#//apple_ref/doc/uid/DTS40009558" rel="nofollow noreferrer">AdvancedURLConnections sample app</a> for examples of how to handle authentication challenges.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload