Answer the question
In order to leave comments, you need to log in
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
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
Relies on the standard.
If you want to violate - your right is not forbidden.
.....
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.
.....
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question