mirror of
https://github.com/moparisthebest/curl
synced 2024-12-23 16:48: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:
parent
d259cf1a9b
commit
34e5ad21d2
@ -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
|
libcurl do a HEAD request. For most other protocols it means just not asking
|
||||||
to transfer the body data.
|
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
|
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
|
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.
|
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
|
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
|
will get a body (unless the resource and server sends a zero byte body for the
|
||||||
|
Loading…
Reference in New Issue
Block a user