Answer the question
In order to leave comments, you need to log in
How to make a c# httpclient request if the server requires js?
Good afternoon!
I wanted to make a small parser for a browser game in c#. Through HttpClient, I make a post request to the login page, send my login/password, and instead of the page with the game, a custom message
JavaScript is disabled is returned. To get the best experience from this game, you need to have JavaScript enabled in your browser.
How the server found out that I didn’t have js, what can be done in such a situation, or at least tell me what to write in the search engine, I can’t formulate.
ps I'm sure that such situations are somehow easily managed. I don’t want to fence the chrome extension, I just need to collect statistics about the neighbors in the game)
Answer the question
In order to leave comments, you need to log in
It looks like you need Selenium . But I would like to see the request and response. Or at least tell us which site you are trying to parse
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question