Skip to content
Related Articles

Related Articles

HTTP headers | Authorization
  • Last Updated : 11 May, 2020

The HTTP headers Authorization header is a request type header that used to contains the credentials information to authenticate a user through a server. If the server responds with 401 Unauthorized and the WWW-Authenticate header not usually.

Syntax:

Authorization: <type> <credentials>

Directives: This header accept two directive as mentioned above and described below:

  • <type>: This directive holds the authentication type the default type is Basic and the other types are IANA registry of Authentication schemes and Authentication for AWS servers (AWS4-HMAC-SHA256).
  • <credentials>: This directive is totally depends on the type of authentication if the authentication is Basic then the credentials are struct with Username and Password combine with a colon like “Username:Password” and the resulted string is base64 encoded.

Example:

  • Authorization: Basic YWxhZGRpbjpvcGVuc2VzYW1l

Supported browsers: The browsers compatible with HTTP headers Authorization are listed below:

  • Google Chrome
  • Internet Explorer
  • Firefox
  • Safari
  • Opera
My Personal Notes arrow_drop_up
Recommended Articles
Page :