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?

  • If you are not afraid of a change in the registry, then you can display with a later IE from the installed - stackoverflow.com/questions/17922308/… - user227049
  • If not a secret, you can find out what this site is? - user227049
  • @ "Foggy Finder" is not a secret- currency rates- ru.tradingview.com and api there I don’t need it. Only a clumsy method to rip out the data is necessary - Rakzin Roman
  • and what exactly do you need to get? maybe you don’t need webbrowser at all or need to display the page too? - user227049

1 answer 1

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.