← Commit list

0c14ed62c4

Daniel Stenberg
Daniel Stenberg
2026-03-26
SUCCESS Duration: 257s

Subject

location/follow: mention netrc

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

docs/cmdline-opts/follow.md+3 -0
@@ -28,3 +28,6 @@ This is subtly different than --location, as that option always set the custom
method in all subsequent requests independent of response code.
Restrict which protocols a redirect is accepted to follow with --proto-redir.
+
+When --netrc is used in combination with this option, credentials for the
+followed-to hosts may also be selected from that file.
docs/cmdline-opts/location.md+6 -4
@@ -25,10 +25,12 @@ location (indicated with a Location: header and a 3XX response code), this
option makes curl redo the request to the new place. If used together with
--show-headers or --head, headers from all requested pages are shown.
-When authentication is used, or when sending a cookie with `-H Cookie:`, curl
-only sends its credentials to the initial host. If a redirect takes curl to a
-different host, it does not get the credentials passed on. See
---location-trusted on how to change this.
+When authentication is provided on the command line (for example --user or
+--oauth2-bearer), or when sending a cookie with `-H Cookie:`, curl only sends
+its credentials to the initial host. If a redirect takes curl to a different
+host, it does not get the credentials passed on. See --location-trusted on how
+to change this. When --netrc is used in combination with this option,
+credentials for the followed-to hosts may also be selected from that file.
Limit the amount of redirects to follow by using the --max-redirs option.