WWW-Authenticate:
header that lists all the authentication methods that the server supports.Proxy-Authenticate:
header that lists all the authentication methods that the proxy supports.-u, --user
option to provide user name and password (separated with a colon). Like this:--basic
.--anyauth
. This makes curl try the request unauthenticated, and then switch over to authentication if necessary: