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:
12.1
12.2
12.3
12.4
12.5
13.0
13.1
13.2
13.3
13.4
Statistic
FMM
Blog
Sets the list of FTP or SFTP commands to pass to the server after your FTP transfer request.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
CURL | 2.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example |
---|---|---|
curl | The CURL session handle. | $curl |
Value... | The ftp commands. | "" |
Returns "OK" on success.
See also POSTQUOTE option in CURL manual.
Create folder in FTP:
MBS( "CURL.SetOptionPostQuote"; $curl; "MKD testfolder" )
Rename file using two FTP commands:
MBS( "CURL.SetOptionPostQuote" ; $curl ; "RNFR foo.txt"; "RNTO bar.txt" )
Delete file after upload for FTP:
MBS( "CURL.SetOptionPostQuote"; $curl; "DELE docs/test.txt" )
// URL is to domain only and relative path in quote.
Delete folder after upload:
MBS( "CURL.SetOptionPostQuote"; $curl; "RMD testfolder" )
Set file permissions:
MBS( "CURL.SetOptionPostQuote" ; $curl ; "SITE CHMOD 777 testfile")
Call with three parameters:
MBS( "CURL.SetOptionPostQuote"; handle; $value1; $value2; $value3 )
Rename file for SFTP commands:
MBS( "CURL.SetOptionPostQuote" ; $curl ; "rename \"old name.txt\" \"new namew.txt\"" )
Create folder with SFTP:
Set Variable [ $result ; Value: MBS( "CURL.SetOptionPostQuote"; $curl; "mkdir testPost" ) ]
Created 18th August 2014, last changed 5th June 2021