Skip to content

Instantly share code, notes, and snippets.

@oliviagallucci
Created September 23, 2023 12:35
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
Example HTTP request with an "Authorization" header for basic authentication. The "Authorization" header contains the word "Basic" followed by a base64-encoded username and password. This is a basic authentication scheme where the server can decode the credentials to authenticate the client.
GET /api/resource HTTP/1.1
Host: example.com
Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment