04-16-2023, 09:44 PM
If you are going to use curl commands from the shell then you need to provide some options to create the correct http request to the back end php scripts like below. You could prolly get by with just providing the session cookie (the -b option) but YMMV.
Code:
curl -X GET -b PHPSESSID=ho7vk67sqrjua8sme0pqhsjgdq -H "Content-type: application/json" -H "Accept: application/json" "IP_ADDRESS_OR_HOST/command/music-library.php?cmd=load_library"