janerikvw / PHP-iTunes-API

A super simple API for reading the iTunes content.
29 stars 7 forks source link

This version is obsolete #3

Open rcasunshare opened 4 years ago

rcasunshare commented 4 years ago

This version is obsolete, the result is almost always 403

[26-Apr-2020 06:28:05 UTC] PHP Warning: file_get_contents(http://itunes.apple.com/search?country=US&media=music&entity=musicTrack&limit=1&term=Arbol+-+La+Vida+Es+Todo+Lo+Que+Vos+Quieras): failed to open stream: HTTP request failed! HTTP/1.0 403 Forbidden in /home/radioplayer/public_html/players/binplayer/itunes.php on line 148

rcasunshare commented 4 years ago

using this code constantly generates 403 errors when connecting with itunes.

$content = file_get_contents($url, false, $context);

rcasunshare commented 4 years ago

file_get_contents failed to open stream: HTTP request failed! HTTP/1.0 403 Forbidden

This code is useless, it generates a lot of 403 errors. When will they have a new version renewed with curl?