I have VLC 2.1.0 and am making my first attempt to access the web interface with PHP. With a browser, I can access localhost:8080 (although it requires me to set a password in VLC in order to access the web interface) and localhost:8080/requests/status.xml. My code uses $file = file_get_contents('http://localhost:8080/requests/status.xml'); but when I try to run I get a 'Not Authorized' message. If I remove the password from VLC, I get in but I only get the code for the 'You must set a password' page. I've found various ways to pass credentials (user id and passwords) to file_get_contents but VLC only needs a password, not an ID.
Can someone offer advice on how to get in?
Thanks