Moderator: Staff
curl --header "Content-Type: text/plain" --request PUT --data "OFF" http://192.168.1.79:8880/rest/items/MyLight/statecurl http://example.com -o /Users/ryan/examplesource--silentryan wrote:What curl are you using? Happy to take a look but as curl isn't included with windows I'm not sure what binaries you're running.
Under macOS the following works for me in the rule config:
- Code: Select all
curl http://example.com -o /Users/ryan/examplesource
Does that work correctly for you with your curl under windows? To prevent leaks and input and output streams are closed for executed commands which can sometimes be problematic. If supported in your version you may also wish to try with theflag.
- Code: Select all
--silent
cmd.exe /k start C:\Users\Katie\Desktop\lights.batcurl --header "Content-Type: text/plain" --request PUT --data "OFF" http://192.168.1.79:8880/rest/items/MyLight/state
exit