CURL.SetOptionHeader
--------------------

Whether to include headers in output.

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

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

**MBS**( **"CURL.SetOptionHeader";** /\* Whether to include headers in output. \*/  
**$curl**; /\* The CURL session handle. \*/   
**$Value**) /\* 0 to disable or 1 to enablee.g. 1 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| curl | The CURL session handle. | $curl |
| Value | 0 to disable or 1 to enable | 1 |

### Result

Returns "OK" on success.

### Description

Whether to include headers in output.  
A parameter set to 1 tells curl to include the header in the body output.   
This is only relevant for protocols that actually have headers preceding the data (like HTTP).  
  
For HTTP headers, please use [CURL.SetOptionHTTPHeader](CURLSetOptionHTTPHeader.md) function.  
See also [HEADER](https://curl.haxx.se/libcurl/c/CURLOPT_HEADER.html) option in CURL manual.

### See also

- [CURL.GetOptionHTTPHeader](CURLGetOptionHTTPHeader.md)
- [CURL.SetOptionGet](CURLSetOptionGet.md)
- [CURL.SetOptionHTTPHeader](CURLSetOptionHTTPHeader.md)
- [CURL.SetOptionNetRC](CURLSetOptionNetRC.md)
- [CURL.SetOptionProxyHeader](CURLSetOptionProxyHeader.md)
- [CURL.SetOptionQuote](CURLSetOptionQuote.md)
- [CURL.SetOptionRange](CURLSetOptionRange.md)
- [CURL.SetOptionReferer](CURLSetOptionReferer.md)
- [CURL.SetOptionSSLCert](CURLSetOptionSSLCert.md)
- [CURL.SetOptionSSLKey](CURLSetOptionSSLKey.md)

### Blog Entries

- [Translating Insert from URL options for CURL to MBS Plugin calls](https://www.mbsplugins.de/archive/2020-12-14/Translating_Insert_from_URL_op/monkeybreadsoftware_blog_filemaker)

Created 18th August 2014 , last changed 21st June 2019

  
[CURL.SetOptionHappyEyeballsTimeOutMS](CURLSetOptionHappyEyeballsTimeOutMS.md) - [CURL.SetOptionHeaderOptions](CURLSetOptionHeaderOptions.md)

[HTML Version](CURLSetOptionHeader.shtml)