Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
CURL.SetOptionPreQuote
Sets the list of FTP commands to pass to the server after the transfer type is set.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
CURL | 2.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameters
Parameter | Description | Example |
---|---|---|
curl | 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.
This function takes variable number of parameters. Pass as much parameters as needed separated by the semicolon in FileMaker.
Please repeat Value parameter as often as you need.
See also PREQUOTE option in CURL manual.
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.GetOptionPostQuote
- CURL.GetOptionPreQuote
- CURL.SetOptionNoBody
- CURL.SetOptionPost
- CURL.SetOptionPostQuote
- CURL.SetOptionPreProxy
- CURL.SetOptionResolve
- CURL.SetOptionTimeOut
- CURL.SetOptionUserName
- CURL.SetOptionVerbose
Blog Entries
Created 18th August 2014, last changed 5th June 2021