aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2007-04-22 08:05:40 +0000
committerDaniel Stenberg <daniel@haxx.se>2007-04-22 08:05:40 +0000
commit56a5c49ac085a6a1abfa7799f722c15bf94112f6 (patch)
tree776e2e7cc80cbab37e5455730d4ca84be8ae2b4f /docs
parent02267eba4c97c640128922677267d0709a106104 (diff)
clarify a bit on the follow-redirect logic and when curl switches from POST
to GET on redirect
Diffstat (limited to 'docs')
-rw-r--r--docs/curl.15
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/curl.1 b/docs/curl.1
index 301461339..dd5d1d758 100644
--- a/docs/curl.1
+++ b/docs/curl.1
@@ -704,6 +704,11 @@ able to intercept the user+password. See also \fI--location-trusted\fP on how
to change this. You can limit the amount of redirects to follow by using the
\fI--max-redirs\fP option.
+When curl follows a redirect and the request is not a plain GET (for example
+POST or PUT), it will do the following request with a GET if the HTTP response
+was 301, 302, or 303. If the response code was any other 3xx code, curl will
+re-send the following request using the same unmodified method.
+
If this option is used twice, the second will again disable location following.
.IP "--location-trusted"
(HTTP/HTTPS) Like \fI-L/--location\fP, but will allow sending the name +