5

I am a beginner in using WebBrowser Control in C#. I try to change the User Agent string in

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

Please Help.

Ragesh S
  • 3,727
  • 13
  • 99
  • 131
  • What have you tried? [duplicate](http://stackoverflow.com/questions/937573/changing-the-useragent-of-the-webbrowser-control-winforms-c-sharp) – scheien Mar 04 '13 at 09:10

1 Answers1

9

You can set any additional headers in the Navigate method of WebBrowser

WebBrowser wc = new WebBrowser();
wc.Navigate("http://google.com", null, null, "User-Agent: User agent");
Brian Warshaw
  • 22,086
  • 9
  • 51
  • 71
animaonline
  • 3,626
  • 5
  • 26
  • 55