Should work. Ensure you have the correct format: "http://user:pass@IPaddresss:port/admin...."
Also in webserve settings (advanced settings), you need to disable "use secure session keys and login page"
This is how the config looks in Tasker:
Server Port:
http://Myusename:Password@ServerIPaddress:Port
Should there be /admin after the port?
Path:
/admin?profile=3&lock=2
Also I don't have the "use secure session keys and login page" disabled. I will try that