Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
CURL.FormFinish
Finishes constructing a form.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
CURL | 2.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "CURL.FormFinish"; curl ) More
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 function to query form and see whether it's correct.
Please call before CURL.Perform and after all CURL.FormAdd* calls.
Examples
Sets form values and finishes:
MBS( "CURL.FormAddKeyValue"; $curl; "login"; "testuser" )
MBS( "CURL.FormAddKeyValue"; $curl; "password"; "xxx" )
MBS( "CURL.FormFinish"; $curl )
Add PDF container:
Set Variable [ $r; Value: MBS( "CURL.FormAddKeyContainerContentType"; $curl; "file"; "document.pdf"; Test::MyContainer; "application/pdf") ]
Set Variable [ $r; Value: MBS( "CURL.FormFinish"; $curl ) ]
See also
- CURL.FormAddKeyContainer
- CURL.FormAddKeyContainerContentType
- CURL.FormAddKeyFile
- CURL.FormAddKeyFileContentType
- CURL.FormAddKeyText
- CURL.FormAddKeyTextContentType
- CURL.FormAddKeyValue
- CURL.FormAddKeyValueContentType
- CURL.Perform
- CURL.SetOptionPassword
Release notes
- Version 15.0
- Changed functions returning CURL errors to mark this as error, so IsError function returns true. This affects CURL.Perform, CURL.FormClear, CURL.FormFinish, CURL.Upkeep, CURL.SendText, CURL.SendData, CURL.PerformAsync, CURL.WebSocketSend, CURL.WebSocketReceive, CURL.SetSocketNonBlocking, CURL.SetSocketNonBlocking, SendMail.PrepareCURL and various CURL.SetOption functions.
Example Databases
- CURL/CURL Send Form
- CURL/WebServices/AdobeSign WebService
- CURL/WebServices/TinyURL
- Third Party/Google OAUTH 2 example
Blog Entries
This function checks for a license.
Created 18th August 2014, last changed 10th December 2020