Send credentials to WebBrowser

柔情痞子 提交于 2019-12-19 10:32:24

问题


I have a webbrowser control that navigates to sharepoint port.

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


回答1:


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.



来源:https://stackoverflow.com/questions/2445963/send-credentials-to-webbrowser

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!