Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.1   6.2   6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4    Statistic  

CURL.SetInputPDF

Sets input to PDF data from the container value.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
CURL 4.0 Yes Yes Yes Yes Yes

MBS( "CURL.SetInputPDF"; Handle; data )

Parameters

Parameter Description Example value
Handle 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.Cleanup"; $curl)]

See also


CURL.SetInputJPEG   -   CURL.SetInputPNG

Feedback: Report problem or ask question.




Links
MBS Xojo Chart Plugins