最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

c# - Windows Authentication working only in PowerShell but not as curl - Stack Overflow

programmeradmin5浏览0评论

I am running Web App on my IIS server and I have Windows Authnetication enabled.

On client, when I run PowerShell script: Invoke-WebRequest -Uri {url} -UseDefaultCredentials, its working fine. Also in C# when I use UseDefaultCredentials = true in HttpClient, its working fine.

But when I run bash command: curl --negotiate -u : {url} I am gettin 401 Unauthorized error

Why?

发布评论

评论列表(0)

  1. 暂无评论