Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5   8.0   8.1    Statistic  


Disables collecting data for Result functions.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
CURL 2.6 Yes Yes Yes Yes Yes

MBS( "CURL.SetOptionFileOnlyMode"; Handle; Value )


Parameter Description Example value
Handle The CURL session handle. $curl
Value Whether to write data to files only and avoid storing data in memory. 1


Returns "OK" on success or error message.


Disables collecting data for Result functions.
If you create file with CURL.CreateOutputFile you may want to have data only in file and avoid filling memory with data for the result functions.
Do not call this method while a transfer is running.


Write data only to file:

MBS( "CURL.SetOptionFileOnlyMode"; $curl; 1 )
MBS( "CURL.CreateOutputFile"; $curl; "/tmp/download.dat" )

See also

CURL.SetOptionFailOnError   -   CURL.SetOptionFileTime

Feedback: Report problem or ask question.

MBS Xojo Plugins