how to Read ContextID and Cookie from http request with dzvents?
Posted: Monday 27 August 2018 19:17
hello,
i want to replace Curl request like this
with dzvent/lua, to read ContextID and Cookie.
is it possible? i don't find in DZvents documentation
i want to replace Curl request like this
Code: Select all
curl -s -o "/home/pi/domoticz/scripts/lua/ContextID.txt" -X POST -c "/home/pi/domoticz/scripts/lua/cookie.txt" -H "Content-Type: application/x-sah-ws-4-call+json" -H "Authorization: X-Sah-Login" -d "{\"service\":\"sah.Device.Information\",\"method\":\"createContext\",\"parameters\":{\"applicationName\":\"so_sdkut\",\"username\":\"admin\",\"password\":\"123456\"}}" http://192.168.1.1/wsis it possible? i don't find in DZvents documentation