CURL.FormFinish
---------------

Finishes constructing a form.

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

MBS( "CURL.FormFinish"; curl ) 

**MBS**( **"CURL.FormFinish";** /\* Finishes constructing a form. \*/  
**$curl**) /\* The CURL session handle. \*/ 

### Parameters

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

### Result

Returns "OK" or error code.

### Description

Finishes constructing a form.  
The form is assigned to the HTTPPost property.  
  
Use [CURL.GetFormData](CURLGetFormData.md) function to query form and see whether it's correct.  
Please call before [CURL.Perform](CURLPerform.md) and after all CURL.FormAdd\* calls.  
### Examples

Sets form values and finishes:

 MBS ( "[CURL.FormAddKeyValue](CURLFormAddKeyValue.md)"; $curl ; "login"; "testuser" )  
MBS ( "[CURL.FormAddKeyValue](CURLFormAddKeyValue.md)"; $curl ; "password"; "xxx" )  
MBS ( "CURL.FormFinish"; $curl )  
Add PDF container:

 Set Variable \[ $r ; Value: MBS ( "[CURL.FormAddKeyContainerContentType](CURLFormAddKeyContainerContentType.md)"; $curl ; "file"; "document.pdf"; Test::MyContainer ; "application/pdf") \]  
Set Variable \[ $r ; Value: MBS ( "CURL.FormFinish"; $curl ) \]  
### See also

- [CURL.FormAddKeyContainer](CURLFormAddKeyContainer.md)
- [CURL.FormAddKeyContainerContentType](CURLFormAddKeyContainerContentType.md)
- [CURL.FormAddKeyFile](CURLFormAddKeyFile.md)
- [CURL.FormAddKeyFileContentType](CURLFormAddKeyFileContentType.md)
- [CURL.FormAddKeyText](CURLFormAddKeyText.md)
- [CURL.FormAddKeyTextContentType](CURLFormAddKeyTextContentType.md)
- [CURL.FormAddKeyValue](CURLFormAddKeyValue.md)
- [CURL.FormAddKeyValueContentType](CURLFormAddKeyValueContentType.md)
- [CURL.Perform](CURLPerform.md)
- [CURL.SetOptionPassword](CURLSetOptionPassword.md)

### Release notes

- **Version 15.0**
    - Changed functions returning CURL errors to mark this as error, so [IsError](https://www.mbsplugins.eu/IsError.shtml) function returns true. This affects [CURL.Perform](https://www.mbsplugins.eu/CURLPerform.shtml), [CURL.FormClear](https://www.mbsplugins.eu/CURLFormClear.shtml), [CURL.FormFinish](https://www.mbsplugins.eu/CURLFormFinish.shtml), [CURL.Upkeep](https://www.mbsplugins.eu/CURLUpkeep.shtml), [CURL.SendText](https://www.mbsplugins.eu/CURLSendText.shtml), [CURL.SendData](https://www.mbsplugins.eu/CURLSendData.shtml), [CURL.PerformAsync](https://www.mbsplugins.eu/CURLPerformAsync.shtml), [CURL.WebSocketSend](https://www.mbsplugins.eu/CURLWebSocketSend.shtml), [CURL.WebSocketReceive](https://www.mbsplugins.eu/CURLWebSocketReceive.shtml), CURL.SetSocketNonBlocking, CURL.SetSocketNonBlocking, [SendMail.PrepareCURL](https://www.mbsplugins.eu/SendMailPrepareCURL.shtml) and various CURL.SetOption functions.

### Example Databases

- [CURL/CURL Send Form](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/CURL/CURL%20Send%20Form.shtml#1ScriptAnchor_)
- [CURL/WebServices/AdobeSign WebService](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/CURL/WebServices/AdobeSign%20WebService.shtml#17ScriptAnchor_)
- [CURL/WebServices/TinyURL](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/CURL/WebServices/TinyURL.shtml#1ScriptAnchor_)
- [Third Party/Google OAUTH 2 example](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Third%20Party/Google%20OAUTH%202%20example.shtml#1ScriptAnchor_)

### Blog Entries

- [MBS FileMaker Plugin, version 15.0pr9](https://www.mbsplugins.de/archive/2025-01-10/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)
- [Using NetVerify web service with FileMaker](https://www.mbsplugins.de/archive/2016-08-12/Using_NetVerify_web_service_wi/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 18th August 2014 , last changed 10th December 2020

  
[CURL.FormClear](CURLFormClear.md) - [CURL.GetActiveSocket](CURLGetActiveSocket.md)

[HTML Version](CURLFormFinish.shtml)