Authenticate with Digest auth if the server supports it.
Section: Credentials and Sessions
HTTP Digest auth
bash
bash
curl --digest -u 'user:password' https://example.com/protectedExplanation
Some older systems still use Digest auth.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Credentials and Sessions
Use a custom netrc file
Read machine credentials from a specific netrc file.
SPNEGO / Negotiate auth
Use Negotiate auth with credentials from the environment or Kerberos setup.
Follow redirects and send auth
Follow redirects and keep auth across hosts only when you explicitly trust it.