Hi
I own a Philips TV wich is supporting jointSPACE Rest-Calls. And I can do rest-calls to my Philips-TV with Curl without problems:
The folowing Curl-Example is successfully returning the "Powerstate" of my TV ("tv on" or "tv off").
Now I try to do this curl-call on my SpaceLynk with Lua. So far it is not working. It returns code 404.
I also tried to use the Erwin's digest-example: https://forum.logicmachine.net/showthrea...mpm_digest 3
But no luck so far
Can somebody help me by providing a valid lua code which is doing this curl-call?
Thanks!
I own a Philips TV wich is supporting jointSPACE Rest-Calls. And I can do rest-calls to my Philips-TV with Curl without problems:
The folowing Curl-Example is successfully returning the "Powerstate" of my TV ("tv on" or "tv off").
- The Call is using digest authorization
- The Call is using https
- Insecure server connections has to be allowed ("-k" - because the TV is using a self signed certificate)
- Beside SSL, it connects to Port 1926 where the jointSPACE API is answering the requests.
Code:
curl -XGET -u <user>:<password> https://192.168.3.123:1926/powerstate -k --digest -v
Now I try to do this curl-call on my SpaceLynk with Lua. So far it is not working. It returns code 404.
I also tried to use the Erwin's digest-example: https://forum.logicmachine.net/showthrea...mpm_digest 3
But no luck so far
Can somebody help me by providing a valid lua code which is doing this curl-call?
Thanks!