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.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5   7.6    Statistic  

CURL.SetOptionPreQuote

Sets the list of FTP commands to pass to the server after the transfer type is set.

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

MBS( "CURL.SetOptionPreQuote"; Handle; Value )

Parameters

Parameter Description Example value
Handle The CURL session handle. $curl
Value The ftp commands. ""

Result

Returns "OK" on success.

Description

Sets the list of FTP commands to pass to the server after the transfer type is set.
Disable this operation again by passing no value to this function. Before version 7.15.6, if you also set CURL.SetOptionNoBody to 1, this option didn't work.

This option takes a list of items. So this function takes a variable number of arguments. If you call function with 2 parameters, you set an empty list. If you call it with 5 parameters, you set a list with 3 values.

See also CURL.SetOptionQuote and CURL.SetOptionPostQuote.
File names may be passed with quotes to include spaces in file names.

Examples

Create folder before upload:

MBS( "CURL.SetOptionPreQuote"; $curl; "MKD testfolder" )

Rename file before uploading using two FTP commands:

MBS( "CURL.SetOptionPreQuote" ; $curl ; "RNFR foo.txt"; "RNTO bar.txt" )

Delete file before upload:

MBS( "CURL.SetOptionPreQuote"; $curl; "DELE test.txt" )

Delete folder before upload:

MBS( "CURL.SetOptionPreQuote"; $curl; "RMD testfolder" )

Set file permissions:

MBS( "CURL.SetOptionPreQuote" ; $curl ; "SITE CHMOD 777 testfile")

Call with three parameters:

MBS( "CURL.SetOptionPreQuote"; handle; $value1; $value2; $value3 )

See also


CURL.SetOptionPostRedir   -   CURL.SetOptionProtocols

Feedback: Report problem or ask question.




Links
MBS Xojo Plugins