Basic HTTP Auth - wget with Cookies Basic HTTP Auth - wget with Cookies shell shell

Basic HTTP Auth - wget with Cookies


The HTTP Basic authentication scheme is not a persistent, cookie-based authentication scheme, like say a Bearer scheme (e.g. Oauth2), so the credentials will need to be passed on all subsequent requests. The exception would be at the "application" layer if the browser caches the credentials, but that is a browser convenience construct (one of which there is minimal control over) and wouldn't apply in this situation with wget.

Here is a good summary of the drawbacks of HTTP Basic, including the fact that credentials need to be sent with every request.

Check out the Hypertext Transfer Protocol (HTTP) Authentication Scheme Registry for a comprehensive list of authentication schemes.