如何使用 SHDocVw.InternetExplorer.Navigate 在 POST 中发送 cookie?
问题: 在我们的组织中,我们有一个用 c#/.Net2 编写的自制单点登录应用程序,该应用程序已经运行了多年。我们最近发现该应用程序无法与 Outlook Web Access 2010 一起使用。一些 Web 搜索发现了 SSO 供应商的几篇文章 (Novell KB 和 Citrix KB)引用该问题。 OWA2010 在提交时执行 JavaScript,添加一个名为“PBack=0”的 cookie,如果未包含在帖子中,将导致身份验证失败。
问题: 如何在 SHDocVw.InternetExplorer 的 Navigate 方法中包含 cookie?
//ie2 is the instance of IE (SHDocVw.InternetExplorer) containing the OWA login page
ie2.Navigate(URLToPostTo, ref vFlags, ref vTarget, ref vPost, ref vHeaders);
Problem:
In our organization we have a home grown single-sign-on app written in c#/.Net2 that has been working for years. We recently found that the app doesn’t work with Outlook Web Access 2010. A few web searches turned up a couple articles from SSO vendors (Novell KB and Citrix KB) that refer to the issue. OWA2010 executes a javascript on submit that adds a cookie called “PBack=0” that if not included in the post will result in an authentication failure.
Question:
How can I include a cookie in the Navigate method of SHDocVw.InternetExplorer?
//ie2 is the instance of IE (SHDocVw.InternetExplorer) containing the OWA login page
ie2.Navigate(URLToPostTo, ref vFlags, ref vTarget, ref vPost, ref vHeaders);
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
此 C# 代码在 Internet Explorer 中执行 owa 2010 的单点登录。
This c# code performs single sign on for owa 2010 in Internet explorer.