Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Internal API question
#2
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"
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply


Messages In This Thread
Internal API question - by eldar - 04-16-2023, 08:11 PM
RE: Internal API question - by Tim Curtis - 04-16-2023, 09:44 PM
RE: Internal API question - by eldar - 04-16-2023, 11:01 PM
RE: Internal API question - by Tim Curtis - 04-17-2023, 01:11 AM

Forum Jump: