I am trying to access a service that is behind Windows Authentication. I thought I could pass the credentials the way HTTP Basic Authentication credentials are passed, but it’s not working. When I do the following, I get a 401 error, and I am absolutely sure the password is correct.
curl --user username:password http://example.com
Why doesn’t this work?
If you are using Windows Authentication, you need to use NTLM: