Jared
Jared

Reputation: 1897

How do you use JMeter with Digest Authentication?

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

Answers (3)

Yuci
Yuci

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:

enter image description here

enter image description here

enter image description here

(Check also the JMeter doc on HTTP Authentication Manager)

Upvotes: 0

UBIK LOAD PACK
UBIK LOAD PACK

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

BlackGaff
BlackGaff

Reputation: 7707

Have you tried the online manual?

Upvotes: 0

Related Questions