Hello. I work with the vk API, send messages using the ordinary messages.send method, using this code:
file_get_contents("http://api.vk.com/method/messages.send?message=".urlencode($message)."&v=5.60&peer_id=$pid&access_token=$token");` Everything works fine if I send short messages (the maximum length of the message I managed to transmit was ~ 850 characters). Considering the fact that after urlencode() each Russian letter = 3 characters, the length of the url is pretty big. But when I send longer messages, php returns warning: file_get_contents ... I tried to send a request through mozilla, but it did not even work in it (it says something like it was not possible to establish a connection). If you try to send such a long text from the VC website - everything is fine, VC allows you to send messages of such length.
Therefore, the problem is in a long url. How can I send a request with such a long message in a different way?
CURLOPT_URLI give a long url. An empty string comes in response. - LNK