Skip to content

Instantly share code, notes, and snippets.

@oliviagallucci
Created September 23, 2023 12:35
Show Gist options
  • Save oliviagallucci/28f55a8168cec2866b0f5fa519efe234 to your computer and use it in GitHub Desktop.
Save oliviagallucci/28f55a8168cec2866b0f5fa519efe234 to your computer and use it in GitHub Desktop.
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