我有一个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.