I’m creating some web requests using Jmeter, and trying to manually generate responses for them in a program I’m working on.
With the jmeter authentication manager I’m using it does not send authentication headers along with the original request. It requires a response to prompt the client to send along the authentication headers with the web request, but I can’t figure out how to manually make the response that prompts for them. Can anyone tell me how such a response is formatted, or point out how I could figure it out? (I can play around with applications using Jmeter, Java, and Spring, but I don’t know how to get Jmeter to show me the authentication prompt response.)
I tried formatting the response by making it a 401 “Unauthorized” response with the header: WWW-Authenticate: Basic realm=”lamerealm”
but that didn’t seem to work.
In HTTP basic authentication a response should look like:
And the next request should look like: