CURL.SetOptionFileOnlyMode
--------------------------

Disables collecting data for Result functions.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [CURL](component_CURL.md) | [2.6](newinversion26.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

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

**MBS**( **"CURL.SetOptionFileOnlyMode";** /\* Disables collecting data for Result functions. \*/  
**$curl**; /\* The CURL session handle. \*/   
**$Value**) /\* Whether to write data to files only and avoid storing data in memory.e.g. 1 \*/ 

### Parameters

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

### Result

Returns "OK" on success or error message.

### Description

Disables collecting data for Result functions.  
If you create file with [CURL.CreateOutputFile](CURLCreateOutputFile.md) 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.  
### Examples

Write data only to file:

 MBS ( "CURL.SetOptionFileOnlyMode"; $curl ; 1 )  
MBS ( "[CURL.CreateOutputFile](CURLCreateOutputFile.md)"; $curl ; "/tmp/download.dat" )  
Also record data in memory:

 MBS ( "[CURL.CreateOutputFile](CURLCreateOutputFile.md)"; $curl ; "/tmp/download.dat" )  
MBS ( "CURL.SetOptionFileOnlyMode"; $curl ; 0 )  
### See also

- [CURL.CreateOutputFile](CURLCreateOutputFile.md)
- [CURL.SetOptionFailOnError](CURLSetOptionFailOnError.md)

### Blog Entries

- [MBS Filemaker Plugin, version 2.6pr4](https://www.mbsplugins.de/archive/2012-02-17/MBS_Filemaker_Plugin_version_2/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 18th August 2014 , last changed 3th December 2021

  
[CURL.SetOptionFailOnError](CURLSetOptionFailOnError.md) - [CURL.SetOptionFileTime](CURLSetOptionFileTime.md)

[HTML Version](CURLSetOptionFileOnlyMode.shtml)