]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
clarify a bit on the follow-redirect logic and when curl switches from POST
authorDaniel Stenberg <daniel@haxx.se>
Sun, 22 Apr 2007 08:05:40 +0000 (08:05 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 22 Apr 2007 08:05:40 +0000 (08:05 +0000)
to GET on redirect

docs/curl.1

index 3014613395764c6af2e2f28271e705c277d65fa7..dd5d1d7588c1f7f6f5625a79bdd1b7bd1de602c5 100644 (file)
@@ -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 +