【发布时间】:2014-11-20 07:47:30
【问题描述】:
我想在非常 http 请求中添加摘要身份验证授权标头,因此在线程组下添加了 HTTP 授权管理器。我添加了 URL、用户名、密码、域、领域(都同名)并选择了 BASIC_DIGEST 作为选项(我只想要摘要式身份验证)。
我还在 httpclient.parameters 中取消了 http.authentication.preemptive$Boolean=true 的注释,并在 jmeter 中取消了 httpclient.parameters.file=C:\apache-jmeter-2.12\apache-jmeter2.12\bin\httpclient.parameters 的注释。属性文件。
完成后,我关闭了我的 jmeter 并重新启动它。当我运行并进行wireshark捕获时,我发现GET发送时没有授权标头,服务器发送401响应并且jmeter关闭套接字并失败。
我不确定我做错了什么。等待你的cmets。
JMeter 日志: 2014/11/20 13:19:35 信息 - jmeter.threads.JMeterThread:线程开始:线程组 1-1 2014/11/20 13:19:35 信息 - org.apache.commons.httpclient.auth.AuthChallengeProcessor:选择摘要身份验证方案 2014/11/20 13:19:35 信息 - org.apache.commons.httpclient.HttpMethodDirector:没有可用于 DIGEST 'users@perf.tb.com'@192.168.100.30:80 的凭据
【问题讨论】:
标签: http jmeter performance-testing