Answer the question
In order to leave comments, you need to log in
How can you pretend to be a browser when working with a site on Get/Post requests?
Hello. Several times I saw statements from developers who claimed that they work with the site on Get / Post requests, but the site sees them as a browser.
Could you suggest how this can be implemented? How, when working with the site, pretend to be a user who comes, for example, from under Firefox?
Thank you.
Answer the question
In order to leave comments, you need to log in
Perhaps they mean User-Agent.
The User-Agent is easily faked and everyone knows about it - so the fake is so-so.
A more serious fake is a full-fledged imitation of a browser. See SlimerJS, PhantomJS, Selenium for that.
But if we are talking about simple GET / POST - this is not necessary.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question