R
R
restyler2019-10-24 23:11:55
JavaScript
restyler, 2019-10-24 23:11:55

How does the server differentiate a curl request from a nodejs request?

There are two identical requests via http1.1 - one via curl, the other via node.js request.
The first one is successful and the server returns html, the second one is banned by the server and access denied is returned.
Curl variant :
https://pastebin.com/NfwDRJdu
Nodejs variant:
https://pastebin.com/maCFgkX4
Requests are sent from one American cloud server.
Why is this happening?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
motcart, 2019-10-25
@motcart

By user agent?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question