如何为WEBLoad Radview性能工具中的请求执行基本身份验证。

huangapple go评论101阅读模式
英文:

How to do basic authentication for the Request in WEBLoad Radview performance tool

问题

如何在网络负载性能工具中为请求执行基本身份验证?

英文:

How to do basic authentication for the request in web load performance tool?

如何为WEBLoad Radview性能工具中的请求执行基本身份验证。

答案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[&quot;Authorization&quot;] = &quot;Basic XXXXXX&quot;;
//EndAuthentication

<!-- end snippet -->

huangapple
  • 本文由 发表于 2020年1月6日 20:50:26
  • 转载请务必保留本文链接:https://go.coder-hub.com/59612437.html
  • webloadui
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定