diff --git a/docs/libcurl/opts/CURLOPT_FOLLOWLOCATION.md b/docs/libcurl/opts/CURLOPT_FOLLOWLOCATION.md index c7449776b4..af54e17e13 100644 --- a/docs/libcurl/opts/CURLOPT_FOLLOWLOCATION.md +++ b/docs/libcurl/opts/CURLOPT_FOLLOWLOCATION.md @@ -88,6 +88,10 @@ change PUT etc - and therefore also not when libcurl issues a custom PUT. A 303 response makes it switch to GET independently of the original method (except for HEAD). +To control for which of the 301/302/303 status codes libcurl should *not* +switch back to GET for when doing a custom POST, and instead keep the custom +method, use CURLOPT_POSTREDIR(3). + If you prefer a custom POST method to be reset to exactly the method `POST`, use CURLFOLLOW_FIRSTONLY instead.