Page 1 of 1

HTTP Request Sender - to replace CURL

PostPosted: Fri Jan 01, 2021 1:37 am
by Matt77
HI,

i'm testing right now Xeoma and so far i like the Application and the available modules.
My plan is to use it for an initial setup of about 8 cameras where i need to switch items in my HomeAtomation setup.

right now i use this command:

curl -X PUT --header "Content-Type: text/plain" --header "Accept: application/json" -d "OFF" "http://192.168.1.150:8080/rest/items/S_LR_Spots_S/state"

would it be possible to integrate it with the "HTTP Request Sender@ module? or any other one?
if so How?

thanks a lot in advance for any help

regards
Matt

Re: HTTP Request Sender - to replace CURL

PostPosted: Tue Feb 02, 2021 8:42 am
by Admin_P
Hello!
Currently "HTTP Request Sender" works only with GET requests, so a PUT request won't work with it. However, we intend to expand its functionality to allow for more request types.
For now you can use "Application Runner" to run curl with the required parameters to automate this process.