Security and Authorization
Authorization: SCHEME REALM
The term SCHEME would be replaced by BASIC and the term REALM is replaced by an encoded form of credentials.
This is in the format of username:password encoded using a base64 algorithm. Suppose that your username was sjohnson and your password was duckduckgoose. Applying a base64 encoding algorithm to them would give an Authorization header of
Authorization: Basic c2pvaG5zb246ZHVja2R1Y2tnb29zZQ==
Beyond HTTP Basic authentication, there is also Digest authentication. Even though HTTP basic authentication is "encoded," it's not actually secure, because the realm is transmitted in the clear (the encoding masks but does not really hide the username and password). Although Digest authentication is technically more secure, most Web browsers do not support it, leading most websites to not support it.