Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 9.0   9.1   9.2   9.3   9.4   9.5   10.0   10.1   10.2   10.3    Statistic  


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"; curl; Value )   More


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


Returns "OK" on success.


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.

See also PREQUOTE option in CURL manual.


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

Created 18th August 2014, last changed 6th November 2017

CURL.SetOptionPreProxy   -   CURL.SetOptionProtocols

Feedback: Report problem or ask question.

MBS Xojo Chart Plugins