且构网

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

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

更新时间:2021-08-07 05:39:15

实际上,我对这个问题错了。运行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.