J
J
JOBEJlUR2019-05-06 18:11:03
In contact with
JOBEJlUR, 2019-05-06 18:11:03

Why pass the User Agent to the request header when working with the VK API?

I know that if many accounts are logged in under one user agent, then VK will ban them.
I'm sending requests through the Xnet library, what if I don't pass the user agent? How will this affect bans?
And why send a user agent if VK gives answers without it?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
#
#, 2019-05-07
@mindtester

How will this affect bans?
the only aspect to worry about. however, the logic of evaluating headers and behavior on requests (in the sense of the one that can lead to a ban) is all a secret of the site

D
dollars, 2019-05-06
@dollar

Relies on the standard.
If you want to violate - your right is not forbidden.

RFC2616.txt (HTTP/1.1)
.....
The User-Agent request-header field contains information about the
user agent originating the request. This is for statistical purposes,
the tracing of protocol violations, and automated recognition of user
agents for the sake of tailoring responses to avoid particular user
agent limitations. User agents SHOULD include this field with
requests.
.....

P
Puma Thailand, 2019-05-06
@opium

Do not pass on everything that is there to think

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question