Curl fails from HA, but succeeds from windows, why?

Guys, i am testing a curl command from windows , it works , when i try the same command from SSH in HA, it fails with 401 unauthorized? why is that? see screenshots
from windows i use the API tester plugin, its quite easy, and i can just copy/paste the curl command

so when i paste it in ssh, it doesnt work?
i also tried adding -U user:pass doesnt help

ok, fixed, i had to add --digest, that did the trick