Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 8.2   8.3   8.4   8.5   9.0   9.1   9.2   9.3   9.4   9.5    Statistic  


Add a section to a multipart/formdata HTTP POST.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
CURL 2.5 Yes Yes Yes Yes Yes
MBS( "CURL.FormAddKeyValue"; curl; Name; Value )   More


Parameter Description Example value
curl The CURL session handle. $curl
Name The name of the form field. "city"
Value The value for the form field. "Nickenich"


Returns "OK" or error code.


Add a section to a multipart/formdata HTTP POST.
This adds simply form field with a given name and value.
For text encoding UTF-8 is used here.

Please call CURL.FormFinish after you added all your fields and before you call CURL.Perform.


Sets city in a form

MBS( "CURL.FormAddKeyValue"; $curl; "City"; "Nickenich" )

Build form:

MBS( "CURL.FormAddKeyValue"; $curl; "login"; "testuser" )
MBS( "CURL.FormAddKeyValue"; $curl; "password"; "xxx" )
MBS( "CURL.FormFinish"; $curl )

See also

Example Databases

Blog Entries

Created 18th August 2014, last changed 12nd February 2015

CURL.FormAddKeyTextContentType   -   CURL.FormAddKeyValueContentType

Feedback: Report problem or ask question.

MBS Xojo Plugins