开发者

How do you use JMeter with Digest Authentication?

开发者 https://www.devze.com 2023-03-24 04:36 出处:网络
I\'m trying to use JMeter to test a web application, but there is no documentation o开发者_Go百科n how to set it up to use digest authentication.I\'ve tried using the proxy server to record the authen

I'm trying to use JMeter to test a web application, but there is no documentation o开发者_Go百科n how to set it up to use digest authentication. I've tried using the proxy server to record the authentication, but the requests have no information that I can see in the UI and playback doesn't work. It seems the default with JMeter is basic authentication, though I've heard hints that digest can be used. A simple example would be great.


JMeter supports DIGEST authentication using Authorization Manager and httpclient Using HTTP 3.1 :

in jmeter.Properties , uncomment:

httpclient.parameters.file=full path to bin folder/httpclient.parameters

in httpclient.parameters, uncomment:

http.authentication.preemptive$Boolean=true

Using HTTP Client 4:

hc.parameters.file=full path to bin folder/hc.parameters

in hc.parameters, uncomment:

http.authentication.preemptive$Boolean=true


Have you tried the online manual?


I used JMeter (version 3.0) with Digest Authentication to consume RESTful APIs(, which were protected by Spring Digest Authentication)

I configured JMeter as below. And it worked perfectly for me. FYI:

How do you use JMeter with Digest Authentication?

How do you use JMeter with Digest Authentication?

How do you use JMeter with Digest Authentication?

(Check also the JMeter doc on HTTP Authentication Manager)

0

精彩评论

暂无评论...
验证码 换一张
取 消