I open a certain site, but he does not want to work with a standard browser.
How to do that he would send the headers to others and pretend to be chrome?
1 answer
No It is IE and works accordingly. Moreover, it is IE7 and most modern sites with scripts in it will not work anyway.
Send the requests yourself via HttpWebRequest and manage the headers yourself.
To pretend to be a kormam, you need to set the appropriate user-agent , for example: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36 and remember to save and process cookies. Here you can see an example.
Another option - instead of the standard browser to use something chromium. There are several controls, but when I tried to quickly add them to my application, I didn’t like something there.
Well, the third option is to take a normal chrome and use selenium, or some kind of wrapper over the chrome headless.
webbrowserat all or need to display the page too? - user227049