Reputation: 1897
I'm trying to use JMeter to test a web application, but there is no documentation on 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.
Upvotes: 2
Views: 3503
Reputation: 30109
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:
(Check also the JMeter doc on HTTP Authentication Manager)
Upvotes: 0
Reputation: 34526
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
Upvotes: 2