Greeting everyone, may I ask your help for following question?
I’m using following code to call external browser in my current iPhone apps:
[[UIApplication sharedApplication] openURL:urls];
- urls = “http://myhost.net/home.aspx”
Assume user is already logged in to the apps,
I can to pass the user name password to “home.aspx” if security is not a concern…
e.g. urls = “http://myhost.net/home.aspx?username=xxx&password=123456”
Question 1: Can I pass some information to home.aspx by “post” instead of “get” method?
Question 2
If above solution is not possible, I would like to set basic authentication in IIS 7.
When the external browser called by apps, can users access to “home.aspx” without 2nd login? (e.g. use code to bypass it)
For Q2, here is my current situation for your reference:
1) I have video steaming service provided by Windows IIS, when user type the URL from browser, the login form will prompt. a. e.g. xxxx/video.htm b. The IIS is configured with SSL and basic authentication
2) After user login succeed, the video should be properly displayed in the HTML 5 page.
3) We have the iPad/iPhone apps will open the external browser (i.e. Safari) to see the video page, but I don’t know how can by pass the authentication (i.e. user should not see login form) if user already logged in the app within 15 mins.
Many thanks for your attention.
Re: August
About question 2, “[[UIApplication sharedApplication] openURL:urls];”
In theory you can do it for non-video streaming hyperlinks, but there are no solution or workaround for video streaming in similar passthough scenario.
Please also see:
Stream MP4 Video From Seek Position in ASP.NET
Both handler or REST web service require header handling but that might be product limitation because no existing APIs work for it.
Hope this helps.