I'm not talking about a UIWebView
, I want to open the mobile safari app using an NSURLRequest
.
Why? In my app, the user has already logged into our web server. I want to give the user the option of launching the webpage without having to reenter their credentials. However, I can't use a GET
because that would put their credentials in the URL.
So, can I open the safari app (not a UIWebView
) from my app with an NSURLRequest
or a POST
in some other form?
GET
does not limit you from providing additional headers to the request, either by way of the standard header set or by sensibly named custom headers. Furthermore, in the correct use of HTTPS, your full path is only exposed to the server over a secure channel once TLS negotiation has succeeded. So, there is less risk here than you may be expecting, though MitM is still plausible. – Specs