Here is what I have so far which successfully authenticates. But, the cookie is not in the received payload.
Code: Select all
/tool
{
:local username myuser
:local password mypass
:local ip 1.1.1.1
:local loginurl "https://$ip/api/auth"
:local statusurl "http://$ip/status.cgi"
fetch mode=https url=$loginurl http-method=post http-data="username=$username&password=$password"
#insert next fetch command using retrieved cookie
}