authorization-header tagged requests and articles

Categorized request examples and articles tagged with [authorization-header] keyword
Curl Request With Bearer Token Authorization Header
An example of a Curl request with Bearer Token Authorization header. The bearer token is sent to the server in the 'Authorization: Bearer {token}' authorization header. The 'Accept: application/json' header tells the server that the client expects a JSON. The server informs the client that it returned a JSON with 'Content-Type: application/json' response header.

GET Request With Bearer Token Authorization Header
An example of sending a GET request with Bearer Token authorization header. The bearer token is sent to the server in the 'Authorization: Bearer {token}' request header. The 'Accept: application/json' header tells the server that the client expects a JSON. The server informs the client that it returned a JSON with 'Content-Type: application/json' response header.

Authorization Bearer Header
An example of sending an authorization bearer header with an API request. The authorization bearer header is sent to the server in Authorization: Bearer {token} request header. The bearer token is a cryptic string, usually returned by the server in the previous request. Clients MUST send an Authorization Bearer Header in every request to a protected resource.