且构网

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

使用Fiddler测试WCF REST服务时如何获得基本身份验证握手?

更新时间:2023-12-01 09:34:46

您需要对用户名:password进行base64编码,然后在其前面加上Basic.最终看起来像这样:

You need to base64 encode your username:password and then prefix it with Basic. It will end up looking something like:

Authorization: Basic VEFWSVNcZGFycmVsOg==

然后在请求标题字段中输入此内容.

You then enter this in the request headers field.