I want to display the song's title, from an icecast 2.4.0 stream, in my WordPress page using php (with php_everywhere)
The title is avaiable in /admin/stats.xml, but it's protected by basic auth and I can't modify the status-json.xsl for some reasons ( I'm not the admin of the icecast server ), so I have to take metadata from the /admin/stats.xml for which I have the username and password.
I tried to make a basic auth using curl, or with the syntax http://user:pass@host:port/...., but it doesn't work, the server doesn't respond to my request with the xml page.
I tried some libraries, that I found on the web, that provide an IceCast class in php, but my wordpress page makes an 403 error in this case. For example: PHP - Icecast info being updated on page