]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
CURLOPT_POST.3: Explain setting to 0 changes request type
authorJay Satiro <raysatiro@yahoo.com>
Fri, 18 Nov 2022 08:54:16 +0000 (03:54 -0500)
committerJay Satiro <raysatiro@yahoo.com>
Sat, 19 Nov 2022 08:19:32 +0000 (03:19 -0500)
Bug: https://github.com/curl/curl/issues/9849
Reported-by: MonkeybreadSoftware@users.noreply.github.com
Closes https://github.com/curl/curl/pull/9942

docs/libcurl/opts/CURLOPT_POST.3

index a1a7eae444654f8144770adfff7eee7e0646be63..f93e18786f8559721f5e593d9110174555b2e349 100644 (file)
@@ -68,6 +68,10 @@ When setting \fICURLOPT_POST(3)\fP to 1, libcurl will automatically set
 If you issue a POST request and then want to make a HEAD or GET using the same
 re-used handle, you must explicitly set the new request type using
 \fICURLOPT_NOBODY(3)\fP or \fICURLOPT_HTTPGET(3)\fP or similar.
+
+When setting \fICURLOPT_POST(3)\fP to 0, libcurl resets the request type to
+the default to disable the POST. Typically that would mean it's reset to GET.
+Instead you should set a new request type explicitly as described above.
 .SH DEFAULT
 0, disabled
 .SH PROTOCOLS