Android - 将 cookie 传递给 Opera Mobile
我有一个应用程序,它与外部网络服务器交互,该服务器在登录时设置会话 cookie。我想在网络浏览器中显示某些页面,而不是处理 HttpGet 请求。不幸的是,该网站使用的框架对 Android 的 WebView 的支持很差。但它与 Opera 移动浏览器配合良好。
有什么方法可以将会话 cookie 从我的应用程序传递到 Opera Mobile?
I have an app, which interacts with a foreign webserver which sets a session cookie upon login. Certain pages I would like to display in a webbrowser, instead of processing the HttpGet request. Unfortunately the website uses frames which is supported very poorly by Android's WebView. But it works fine with Opera Mobile Browser.
Is there any way I can pass the session cookie from my App to Opera Mobile?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
没有办法。
Opera 是一个外部 Android 应用程序,您所能提供的只是一个 URL。该 URL 必须包含登录参数。 WebView 是一个 UI 组件,可以让您更好地控制它。
如果您无法更改 Web 服务器以支持通过神奇 URL 登录,那么您可能就不走运了。
There is no way.
Opera is an external Android app and all you can give for it is an URL. This URL must contain login parameters. WebView is an UI component which gives you much greater control over it.
If you cannot change the web server to support login-by-magical-URL then you are probably out of the luck.