Why doesn't cURL work with Windows Authentication on IIS7?

前端 未结 4 1256
春和景丽
春和景丽 2021-01-31 08:44

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

4条回答
  •  盖世英雄少女心
    2021-01-31 09:46

    If you are using Windows Authentication, you need to use NTLM:

    curl --ntlm --user username:password http://example.com
    

提交回复
热议问题