S
S
Stepan2019-03-11 21:58:10
API
Stepan, 2019-03-11 21:58:10

How to bypass the VK API request length limit?

In my request, the request is too long and gives an HTTP Error 404.14 - URL_TOO_LONG
The link is like this: https:// ... messages.send?message=%5Bid%7C%5D+%2C+%D0%BC%D0%BE %D0%B8+%D0%BA%D0%BE%D0%BC%D0%B0. .. and so many more times.
I form a link in my index.php file as follows: $get_params = http_build_query($request_params); And then I get the data file_get_contents('api.vk.com/method/messages.send?'; . $get_params); But due to the fact that $request_params is too large, then my link is too large, and therefore an error is generated

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stockholm Syndrome, 2019-03-11
@StockholmSyndrome

use POST request

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question