For secure HTTPS request from iPhone, I am using the technique mentioned in this question.
But I am still confused on the flow to request response.
As per my understanding
- Device will post a request to the secure server.
- The server will respond back with challenge.
- the device will validate the challenge in didReceiveAuthenticationChallenge method.
- Download the response.
- For next request the server will not send challenge.
If this flow is correct then the first request will go as a normal HTTP request. and all subsequent requests will go as HTTPS requests.
Please guide me if am wrong.
If there is any good article about how to connect to server in HTTPS mode without using browser, please let me know.