mirror of
https://github.com/curl/curl.git
synced 2026-04-13 12:41:42 +08:00
971 B
971 B
| c | SPDX-License-Identifier | Long | Help | Category | Protocols | Added | Multi | See-also | Example | |||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. | curl | follow | Follow redirects per spec | http | HTTP | 8.16.0 | boolean |
|
|
--follow
Instructs curl to follow HTTP redirects and to do the custom request method set with --request when following redirects as the HTTP specification says.
The method string set with --request is used in subsequent requests for the status codes 307 or 308, but may be reset to GET for 301, 302 and 303.
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.