Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
CURL.AddInputText
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
Parameters
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 |
Result
Returns "OK" on success.
Description
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.
Examples
Add Text:
MBS("CURL.AddInputText"; $curl; "Hello World"; "utf8")
See also
- CURL.AddInputFile
- CURL.AddInputGIF
- CURL.AddInputJPEG
- CURL.AddInputPDF
- CURL.AddInputPNG
- CURL.GetInputAsText
- CURL.SetInputText
Release notes
- Version 10.5
- Version 10.0
- Changed default text encoding for CURL.SetInputText and CURL.AddInputText to UTF-8.
Blog Entries
- MBS FileMaker Plugin, version 10.5pr7
- MBS Filemaker Plugin, version 3.1pr10
- MBS Filemaker Plugin 2.7 Release notes
- MBS Filemaker Plugin, version 2.7pr8
This function checks for a license.
Created 18th August 2014, last changed 6th December 2019