A developer is creating a script to interact with a REST API service that requires basic authentication. The correct combination of payload and headers using Basic Authentication with the provided Base64 encoded credentials is:
A. This option does not use headers correctly. B. Option B - Correct. This option correctly places the 'Authorization' header in the headers dictionary with 'Basic' authentication. C. This option uses 'Bearer' instead of 'Basic' for the 'Authorization' header. D. This option uses 'Bearer' instead of 'Basic' for the 'Authorization' header.
References:
HTTP Authentication
Base64 Encoding
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit