Specify which documentation you found a problem with
The problem is in the curl manual page up to 8.11.1 assuming https://curl.se/docs/manpage.html is up to date.
This is more a quality-of-life issue than an error.
The problem
It's not entirely obvious on initial inspection why curl isn't forwarding -H "Authorization: ..." (which where manual implies -H is permanent, though presumably curl specifically strips the Authorization header subsequently..) or -u use:pass when following redirects according to -L . The -L documentation does describe the problem and cross references to --location-trusted, but for me it was more intuitive to look under -H and -u when I initially discovered the "missing" authorization headers in -v output.
-H (which is more generic) and -u give no mention of stripping (under redirects).
Specify which documentation you found a problem with
The problem is in the curl manual page up to 8.11.1 assuming https://curl.se/docs/manpage.html is up to date.
This is more a quality-of-life issue than an error.
The problem
It's not entirely obvious on initial inspection why curl isn't forwarding
-H "Authorization: ..."(which where manual implies-His permanent, though presumably curl specifically strips the Authorization header subsequently..) or-u use:passwhen following redirects according to-L. The-Ldocumentation does describe the problem and cross references to--location-trusted, but for me it was more intuitive to look under-Hand-uwhen I initially discovered the "missing" authorization headers in-voutput.-H(which is more generic) and-ugive no mention of stripping (under redirects).