开发者

Specify User Agent for WPF WebBrowser Control

开发者 https://www.devze.com 2023-02-03 16:48 出处:网络
I need to alter the default User Agent used by the WPF WebBrowser control. I have looked at th开发者_JS百科e properties of the IWebBrowser2 object behind the control, and tried specifying the user age

I need to alter the default User Agent used by the WPF WebBrowser control. I have looked at th开发者_JS百科e 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?


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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号