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 P Raju
  • 3,879
  • 14
  • 101
  • 136
  • 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,657
  • 9
  • 53
  • 72
animaonline
  • 3,715
  • 5
  • 30
  • 57