I am trying to run a simple curl restAPI call with Domain authentication but its throwing error 401 unauthorized.
I am following below method, please see if you are able to find any issue in here.
curl.exe --insecure --ntlm --user '[email protected]':'avxds24' -X POST https://abcserver:8090/api/action/1578/stop HTTP 401: Unauthorized
However same method is working if I am using local ID removing –ntlm
Just FYI there is no issue with mentioned service ID, I am able to do browser based API call & able to get desired info, its just not working with curl may be I am using correct method.
Source: Windows Questions