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.SetOptionPreQuote
Sets the list of FTP commands to pass to the server after the transfer type is set.
| Component | Version | macOS | Windows | Linux | Server | FileMaker 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.
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.GetOptionPreQuote
- CURL.SetOptionPost
- CURL.SetOptionPostQuote
- CURL.SetOptionPreProxy
- CURL.SetOptionPut
- CURL.SetOptionQuote
- CURL.SetOptionResolve
- CURL.SetOptionTimeOut
- CURL.SetOptionUserName
- CURL.SetOptionVerbose
Created 18th August 2014, last changed 6th November 2017
CURL.SetOptionPreProxy - CURL.SetOptionProtocols
Feedback: Report problem or ask question.
Links
MBS FileMaker Plugins