Meet us at at Real World in Orlando, Florida.

All functions   Mac OS X   Windows   Crossplatform   Components   Guides  
New in version: 2.0   2.1   2.2   2.3   2.4   2.5   2.6   2.7   2.8  

CURL.SetOptionNoBody

Component: CURL
Version: 2.5
Mac OS X: Works
Windows: Works

MBS( "CURL.SetOptionNoBody"; handle; value )

Parameters

Parameter Description Example value
Handle 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.

Examples

Get only the headers:

MBS( "CURL.SetOptionNoBody"; $curl; 1 )

Feedback: Report problem or ask question.




Links
MBS REAL studio Plugins - Nachhilfe in Kretz