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:
(Check also the JMeter doc on HTTP Authentication Manager)
精彩评论