4
4
4ipS2015-07-29 02:05:20
PHP
4ipS, 2015-07-29 02:05:20

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

1 answer(s)
W
wol_fi, 2015-07-29
@wol_fi

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 question

Ask a Question

731 491 924 answers to any question