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.SetInputPDF
Sets input to PDF data from the container value.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| CURL | 4.0 | Yes | Yes | Yes | Yes | Yes |
Parameters
| Parameter | Description | Example |
|---|---|---|
| curl | The CURL session handle. | $curl |
| data | The container value with the data to upload. | $pdfContainer |
Result
Returns "OK" on success.
Description
Sets input to PDF data from the container value.Also sets input file length. You need to define input data for file uploads, http posts and http put operations.
Examples
Upload a PDF file to a FTP Server:
Set Variable [$curl; Value:MBS("CURL.New")]
Set Variable [$result; Value:MBS("CURL.SetOptionURL"; $curl; "ftp://test.test/test/hello.pdf")]
Set Variable [$result; Value:MBS("CURL.SetOptionUpload"; $curl; 1)]
Set Variable [$result; Value:MBS("CURL.SetOptionPassword"; $curl; CURL Test::Password)]
Set Variable [$result; Value:MBS("CURL.SetOptionUserName"; $curl; CURL Test::Name)]
Set Variable [$result; Value:MBS("CURL.SetInputPDF"; $curl; CURL Test::MyPDF)]
Set Field [CURL Test::Result; MBS("CURL.Perform"; $curl)]
Set Field [CURL Test::debug; MBS("CURL.GetDebugAsText"; $curl)]
Set Variable [$result; Value:MBS("CURL.Release"; $curl)]
See also
- CURL.AddInputPDF
- CURL.GetDebugAsText
- CURL.Perform
- CURL.SetInputFile
- CURL.SetInputGIF
- CURL.SetInputJPEG
- CURL.SetInputPNG
- CURL.SetInputText
- CURL.SetOptionUpload
- CURL.SetOptionURL
Blog Entries
Release notes
- Version 10.5
- Fixed memory leaks in CURL.SetInputJPEG, CURL.SetInputPNG, CURL.SetInputPDF, CURL.SetInputGIF and CURL.SetInputFile not freeing container. Broken with 10.0.
Created 18th August 2014, last changed 19th April 2020
CURL.SetInputJPEG - CURL.SetInputPNG
Feedback: Report problem or ask question.
Links
MBS Xojo Plugins