]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
CURLOPT_FOLLOWLOCATION.md: switch to GET => no body
authorDaniel Stenberg <daniel@haxx.se>
Mon, 26 May 2025 08:01:08 +0000 (10:01 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 26 May 2025 11:00:38 +0000 (13:00 +0200)
Clarify

URL: https://curl.se/mail/lib-2025-05/0026.html
Closes #17454

docs/libcurl/opts/CURLOPT_FOLLOWLOCATION.md

index af54e17e13e21a40fdbc9ab48762dfa82a3a9dac..f3e3b99bd3aa6cd7bef158f593c166b8b64d2ae5 100644 (file)
@@ -53,6 +53,11 @@ responses libcurl switches method from POST to GET unless CURLOPT_POSTREDIR(3)
 instructs libcurl otherwise. All other redirect response codes make libcurl
 use the same method again.
 
+When libcurl switches method to GET, it then uses that method without sending
+any request body. If it does not change the method, it sends the subsequent
+request the same way as the previous one; including the request body if one
+was provided.
+
 For users who think the existing location following is too naive, too simple
 or just lacks features, it is easy to instead implement your own redirect
 follow logic with the use of curl_easy_getinfo(3)'s CURLINFO_REDIRECT_URL(3)