Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
CURL.SetOptionNoBody
Whether to ignore the body of the download.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| CURL | 2.5 | Yes | Yes | Yes | Yes | Yes |
MBS( "CURL.SetOptionNoBody"; curl; Value ) More
Parameters
| Parameter | Description | Example |
|---|---|---|
| curl | The CURL session handle. | $curl |
| Value | Whether to ignore body. | 1 |
Result
Returns "OK" on success.
Description
Whether to ignore the body of the download.Set to 1 tells the library to not include the body-part in the output. This is only relevant for protocols that have separate header and body parts. On HTTP(S) servers, this will make libcurl do a HEAD request.
To change request to GET, you should use CURL.SetOptionGet. Change request to POST with CURL.SetOptionPost etc.
See also NOBODY option in CURL manual.
Examples
Get only the headers:
MBS( "CURL.SetOptionNoBody"; $curl; 1 )
See also
- CURL.SetOptionCookie
- CURL.SetOptionCustomRequest
- CURL.SetOptionGet
- CURL.SetOptionNetRC
- CURL.SetOptionNoProxy
- CURL.SetOptionPost
- CURL.SetOptionPreQuote
- CURL.SetOptionProxy
- CURL.SetOptionSSLKey
- CURL.SetOptionUpload
Example Databases
Created 18th August 2014, last changed 18th August 2014
CURL.SetOptionNewFilePerms - CURL.SetOptionNoProxy
Feedback: Report problem or ask question.
Links
MBS Xojo blog