1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-23 08:38:49 -05:00

CURLOPT_NOBODY.3: fix the syntax for referring to options

As test 1140 fails otherwise!

Follow-up to e1bac81cc8
This commit is contained in:
Daniel Stenberg 2020-07-27 23:59:00 +02:00
parent d259cf1a9b
commit 34e5ad21d2
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -33,13 +33,13 @@ output when doing what would otherwise be a download. For HTTP(S), this makes
libcurl do a HEAD request. For most other protocols it means just not asking
to transfer the body data.
For HTTP operations when \fBCURLOPT_NOBODY(3)\fP has been set, unsetting the
For HTTP operations when \fICURLOPT_NOBODY(3)\fP has been set, unsetting the
option (with 0) will make it a GET again - only if the method is still set to
be HEAD. The proper way to get back to a GET request is to set
\fBCURLOPT_HTTPGET(3)\fP and for other methods, use the POST ur UPLOAD
\fICURLOPT_HTTPGET(3)\fP and for other methods, use the POST ur UPLOAD
options.
Enabling \fBCURLOPT_NOBODY(3)\fP means asking for a download without a body.
Enabling \fICURLOPT_NOBODY(3)\fP means asking for a download without a body.
If you do a transfer with HTTP that involves a method other than HEAD, you
will get a body (unless the resource and server sends a zero byte body for the