Are you sure that it's really Basic authentication? How do you know? What happens if you inject username and password into URL as
http://username:password@site/path
If result will differ from 401 you could try providing Base URL
(including the path) along with credentials.
See How to use HTTP Basic Authentication in JMeter guide for more details on how to properly configure HTTP Authorization Manager for Basic authentication challenge.
Just in case if anything goes wrong you can also use HTTP Header Manager. Looking into HTTP Request details, Basic HTTP Authentication results in the following HTTP Header:
- Name: Authorization
- Value: Basic [Base64-encoded username:password] string
So you can construct proper authorization header as follows:
- Add a HTTP Header Manager to your plan
- Put "Authorization" into "Name" field
- Put "Basic " into value field (mention space after basic"
- Now you need to know Base64-encoded value of username and password pair separated by colon. In order to know this
- navigate to https://www.base64encode.org/
- put your credentials as "username:password" (without quotes) into form and click "Encode" button
- append the resulting encoded value to HTTP Header Manager's "Value" stanza, after "Basic "
Hope this helps.