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