发送凭据,web浏览器 [英] Send credentials to WebBrowser

查看:367
本文介绍了发送凭据,web浏览器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个WebBrowser控件用于导航到SharePoint端口。

I have a webbrowser control that navigates to sharepoint port.

如何发送凭据WebBrowser控件,这样我就可以导航到该网站自定义凭据?

How can i send credentials to webbrowser control, so i can navigate to the site with custom credentials?

推荐答案

这取决于所使用的服务器的身份验证方法。对于表单验证你只需要模拟表单POST。但最有可能的网站使用集成的Windows身份验证,您需要实现IAuthenticate进行的(前)或通过LogonUser的模仿。

It depends on the authentication method used by the server. For form authentication you just need to simulate a form post. But most likely the site is using integrated Windows authentication and you need to implement IAuthenticate(Ex) Or impersonate via LogonUser.

这篇关于发送凭据,web浏览器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆