英文:
How to do basic authentication for the Request in WEBLoad Radview performance tool
问题
如何在网络负载性能工具中为请求执行基本身份验证?
答案1
得分: 1
你正在做正确的事情,但需要更改顺序 - 将密码和用户名设置移到wlHttp.Post命令之前。
英文:
You are doing the right thing, but need to change the order - move the Password and username settings above the wlHttp.Post command.
答案2
得分: 1
在调用post命令之前添加
//StartAuthentication
wlHttp.OverrideAuthorizationHeader = true;
wlHttp.Header["Authorization"] = "Basic XXXXXX";
//EndAuthentication
英文:
Add before calling the post command
<!-- begin snippet: js hide: false console: true babel: false -->
<!-- language: lang-js -->
//StartAuthentication
wlHttp.OverrideAuthorizationHeader = true;
wlHttp.Header["Authorization"] = "Basic XXXXXX";
//EndAuthentication
<!-- end snippet -->
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论