V
V
Victor P.2020-01-10 16:20:09
Character encoding
Victor P., 2020-01-10 16:20:09

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

1 answer(s)
M
mishkaaaaaa, 2020-01-10
@Jeer

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 question

Ask a Question

731 491 924 answers to any question