Specify User Agent for WPF WebBrowser Control

﹥>﹥吖頭↗ 提交于 2019-12-23 04:11:54

问题


I need to alter the default User Agent used by the WPF WebBrowser control. I have looked at the properties of the IWebBrowser2 object behind the control, and tried specifying the user agent by specifying it when calling "Navigate" as Suggested Here

Is this possible?


回答1:


The solution could be like the following Changing the UserAgent of the WebBrowser control -Winforms C#




回答2:


URLMkSetSessionOption. http://blogs.msdn.com/b/ieinternals/archive/2009/10/08/extending-the-user-agent-string-problems-and-alternatives.aspx



来源:https://stackoverflow.com/questions/4670730/specify-user-agent-for-wpf-webbrowser-control

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