Answer the question
In order to leave comments, you need to log in
Why does VK audio.get have an invalid url?
Hello everyone
I ran into a problem. When using the VK API, namely the audio.get method on the server, I get incorrect url addresses of songs. Although when testing the same script on the local host, everything works successfully.
I receive a response from the API server through file_get_contents
Answer the question
In order to leave comments, you need to log in
I dare to assume that you are checking the url from the wrong IP from which you received the data. If the link was received on the server, then it will be available only from it. Try wget'om to check up from the console. Vkontakte adds hashes to links to music and videos. The hash depends on the IP and the token, and if the IP is different, the link will not open.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question