且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用 WCF 的 Http 请求中缺少授权标头

更新时间:2021-11-26 05:28:08

其实这个问题我错了.在运行 HTTP 分析器时,我确实看到了不同的行为.在 Http anaylzer 运行时,我的应用程序在收到 401 响应后崩溃.当 Http 分析器应用程序关闭时,上述代码按预期工作.

Actually, I was wrong about this question. I did see different behaviour when running HTTP analyzer. While Http anaylzer running, my application crashed after receiving 401 response. When Http analyzer application closed, the above code worked as expected.