I'd like to know whether Asynchronous openURL supports the cookie mecanism, and if yes can I have some directions to make it work?
I'd like to migrate some bash code using curl to dzvents.
Here is the current bash code to log to the device
Code: Select all
#Login to webinterface of plug
curl --silent -X POST -d "username=$PLUGUSER&password=$PLUGPASSWORD" -b "AIROS_SESSIONID=$SESSIONID" $PLUGIP6OUTLETS/login.cgi
#Retrieve all data from JSON-output
SENSOR=$(curl --silent -b "AIROS_SESSIONID=$SESSIONID" $PLUGIP6OUTLETS/sensors)
Running 4.11214 on RPi