CURL.CloseHeaderFile
--------------------

Closes the header output file.

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

MBS( "CURL.CloseHeaderFile"; curl ) 

**MBS**( **"CURL.CloseHeaderFile";** /\* Closes the header output file. \*/  
**$curl**) /\* The CURL session handle. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| curl | The CURL session handle. | $curl |

### Result

Returns "OK" on success or error message.

### Description

Closes the header output file.  
To create file for header messages use [CURL.CreateHeaderOutputFile](CURLCreateHeaderOutputFile.md) function.  
The plugin closes files automatically when you call [CURL.Release](CURLRelease.md).  
Do not call this method while a transfer is running.  
In case close operation itself fails, the result is a number with the native file system error code.  
### Examples

Close header file:

 MBS ("CURL.CloseHeaderFile"; $curl )  
### See also

- [CURL.CloseDebugFile](CURLCloseDebugFile.md)
- [CURL.CreateHeaderOutputFile](CURLCreateHeaderOutputFile.md)
- [CURL.Release](CURLRelease.md)

### Release notes

- **Version 9.4**
    - Fixed a bug in [CURL.CloseDebugFile](http://www.mbsplugins.eu/CURLCloseDebugFile.shtml), [CURL.CloseHeaderFile](http://www.mbsplugins.eu/CURLCloseHeaderFile.shtml), [CURL.CloseInputFile](http://www.mbsplugins.eu/CURLCloseInputFile.shtml) and [CURL.CloseOutputFile](http://www.mbsplugins.eu/CURLCloseOutputFile.shtml) to avoid.

### Blog Entries

- [MBS FileMaker Plugin, version 9.4pr1](https://www.mbsplugins.de/archive/2019-08-08/MBS_FileMaker_Plugin_version_9/monkeybreadsoftware_blog_filemaker)
- [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 19th April 2020

  
[CURL.CloseDebugFile](CURLCloseDebugFile.md) - [CURL.CloseInputFile](CURLCloseInputFile.md)

[HTML Version](CURLCloseHeaderFile.shtml)