Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old


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

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


Parameter Description Example Flags
curl The CURL session handle. $curl
text The text to send.
Encoding The text encoding.
Default is UTF-8 for version 10.0 or newer and native encoding before.
Possible encoding names: ANSI, ISO-8859-1, Latin1, Mac, Native, UTF-8, DOS, Hex, Base64 or Windows. More listed in the FAQ.
UTF8 Optional


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

Release notes

Blog Entries

This function checks for a license.

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

CURL.AddInputPNG - CURL.AvailableSSLBackends