How to change a WebBrowser User Agent control in C #

I am starting to use WebBrowser Control in C #. I am trying to change the User Agent string in

WebBrowser control in my windows form. How can i do this?

Please, help.

+5
source share
1 answer

You can set any additional headers in the WebBrowser navigation method.

WebBrowser wc = new WebBrowser();
wc.Navigate("http://google.com", null, null, "User-Agent: User agent");
+9
source

All Articles