Basic Authentication is a challenge-response mechanism described in RFC 2617.
Example 48-1. Basic Authentication
The following example assumes that one wants to fetch a page /protected.html on the host example.com that is protected using Basic Authentication. The necessary username to pass the authentication is johndoe and the appendant password is foo.