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.4   8.5   9.0   9.1   9.2   9.3   9.4   9.5   10.0   10.1    Statistic  


Adds input data for this transfer to be the text you provide.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
CURL 2.7 Yes Yes Yes Yes Yes
MBS( "CURL.AddInputText"; curl; text { ; Encoding } )   More


Parameter Description Example value
curl The CURL session handle. $curl
text The text to send.
Encoding Optional
The text encoding.
Default is UTF-8 for version 10.0 or newer and native encoding before.
Possible encoding names: ANSI, Arabic-Mac, Arabic-Win, Baltic-Win, CentralEurope-Mac, ChineseSimp-Mac, ChineseSimp-Win, ChineseTrad-Mac, ChineseTrad-Win, Cyrillic-Mac, Cyrillic-Win, EasternEurope-Win, Greek-Mac, Greek-Win, Hebrew-Mac, Hebrew-Win, ISO-8859-1, ISO-8859-2, ISO-8859-3, ISO-8859-4, ISO-8859-5, ISO-8859-6, ISO-8859-7, ISO-8859-8, ISO-8859-9, ISO-8859-15, Korean-Johab, Korean-Mac, Korean-Win, Latin1, Mac, Native, ShiftJIS-Mac, ShiftJIS-Win, Turkish-Mac, Turkish-Win, UTF-8, DOS or Windows. Pass native to use the native encoding of the current platform.


Returns "OK" on success.


Adds input data for this transfer to be the text you provide.
Also sets input file length. You need to define input data for file uploads, http posts and http put operations.
Please make sure you choose the text encoding the other side expects.
Using SetInput* functions and AddInput* functions you can construct the input data in several function calls. This is useful if you do a multipart upload with text parts and file content mixed.

This is for adding to existing data, but for uploading only a file, you can use CURL.SetInputText.


Add Text:

MBS("CURL.AddInputText"; $curl; "Hello World"; "utf8")

See also

Blog Entries

Release notes

Created 18th August 2014, last changed 6th December 2019

CURL.AddInputPNG   -   CURL.Cancel

Feedback: Report problem or ask question.

MBS Xojo Plugins