Is it possible to find that the user agent (and other headers, such as accepting) that would use a webpage First start a webview.
I need to pass the User Agent and accept the header so that it can be ascertained whether a browser based connection is necessary or not. If a browser-based connection is required, then I will start a webview on a YouTube, the problem is that if the request does not match the user agent and accept the information that used to check the browser's need, the request failed It is possible .
I do not want to start a webview, unless the browser connection actually needs service. If one is not needed, then the app can continue straight in the next step. I need to keep the UI as clean as possible, so a webview is not to appear to get header details.
I have seen some answers from within the webview using javascript, but I do not want this webview to start just to get it. Is there any other way to find out what will happen before launching this header WebView?
You should be able to get an HTTP header with an NSURLRequest
< / P>
No comments:
Post a Comment