Skip to content

Commit

Permalink
CURLOPT_POST.3: Explain setting to 0 changes request type
Browse files Browse the repository at this point in the history
Bug: curl#9849
Reported-by:  MonkeybreadSoftware@users.noreply.github.com

Closes curl#9942
  • Loading branch information
jay committed Nov 19, 2022
1 parent 8a6a489 commit e08382a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/libcurl/opts/CURLOPT_POST.3
Expand Up @@ -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
Expand Down

0 comments on commit e08382a

Please sign in to comment.