Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4   13.5    Statistic    FMM    Blog  

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

Example Databases

Blog Entries

This function checks for a license.

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


CURL.FormClear - CURL.GetActiveSocket

💬 Ask a question or report a problem