Why doesn't cURL work with Windows Authentication on IIS7?
curl, windows-authentication
Solution
If you are using Windows Authentication, you need to use NTLM:
curl --ntlm --user username:password http://example.com
Problem
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?