I'm trying to launch some actions from a PHP script. The web server running the PHP script is on the same Mac than Indigo.
This is my PHP code :
- Code: Select all
$content = file_get_contents("http://login:password@localhost:8176/actions/Reboot%20Device?_method=execute");
I have an error in the Indigo logs : access denied "http://localhost:8176/actions/Reboot Device" from login @ 127.0.0.1
The same URL works if I put it directly in a browser.
What is wrong ?