指定 WPF Web 浏览器控件的用户代理
我需要更改 WPF WebBrowser 控件使用的默认用户代理。我查看了控件后面的 IWebBrowser2 对象的属性,并尝试通过在调用“Navigate”时将其指定为 此处建议
这可能吗?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
解决方案可能类似于以下 更改 WebBrowser 控件的 UserAgent -Winforms C#
The solution could be like the following Changing the UserAgent of the WebBrowser control -Winforms C#
URLMkSetSessionOption。 http://blogs.msdn.com/b/ieinternals/archive/2009/10/08/extending-the-user-agent-string-problems-and-alternatives.aspx
URLMkSetSessionOption. http://blogs.msdn.com/b/ieinternals/archive/2009/10/08/extending-the-user-agent-string-problems-and-alternatives.aspx