Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change WebBrowser control User Agent in C# [closed]

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.

like image 892
Ragesh S Avatar asked Mar 04 '13 09:03

Ragesh S


1 Answers

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");
like image 198
animaonline Avatar answered Dec 14 '22 23:12

animaonline