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:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
CURL.AddInputText
Adds input data for this transfer to be the text you provide.
| Component | Version | macOS | Windows | Linux | Server | FileMaker 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
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
Release notes
- Version 10.5
- Version 10.0
- Changed default text encoding for CURL.SetInputText and CURL.AddInputText to UTF-8.
Created 18th August 2014, last changed 6th December 2019
CURL.AddInputPNG - CURL.Cancel
Feedback: Report problem or ask question.
Links
MBS Xojo PDF Plugins