问题 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? 回答1: If you are using Windows Authentication, you need to use NTLM: curl --ntlm --user username:password http://example.com 回答2: You can also