Reputation: 5671
I have a request, which can be used on an endpoint with and without authentication too, but response is different in these cases. I send request to path like /MyService?wsdl
. I tried to use HTTP Authorization Manager
added it to HTTP Request
element with whole url to this service, but it isn't working. I am sure, that username and password are correct. How is it possible to debug authentication process?
Upvotes: 0
Views: 1475
Reputation: 168002
Configure it as follows:
Assuming everything goes well you should see Authorization header added to your request
See How to Use HTTP Basic Authentication in JMeter article for more details.
Alternative solution is adding HTTP Header Manager and configuring it to send Authorisation header with the value of ${__base64Encode(username:password,)}
This approach assumes having __Base64Encode function installed, you can obtain it as a part of Custom JMeter Functions
bundle using JMeter Plugins Manager
Upvotes: 1
Reputation: 637
I suggest to use Fiddler which is a Web Debugging Proxy to send requests from JMeter through it. You can configure HTTP Request to use a proxy.
Make sure the Authorization: Basic ... header is sent within the request.
The HTTP Authorization Manager should be placed at the root of the thread group. You can then specify the full request path associated to each authorization.
Upvotes: 0