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.SetOptionPostQuote
Sets the list of FTP or SFTP commands to pass to the server after your FTP transfer request.
| 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 or SFTP commands to pass to the server after your FTP transfer request.The commands will only be run if no error occurred. Disable this operation again by passing no value to this function.
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.
If you want to do a ftp operation instead of download/upload/directory listing, please use CURL.SetOptionQuote.
See also CURL.SetOptionQuote and CURL.SetOptionPreQuote.
File names may be passed with quotes to include spaces in file names.
See also POSTQUOTE option in CURL manual.
Examples
Create folder:
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:
MBS( "CURL.SetOptionPostQuote"; $curl; "DELE test.txt" )
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" ) ]
See also
- CURL.GetOptionPostQuote
- CURL.GetOptionPreQuote
- CURL.SetOptionPassword
- CURL.SetOptionPost
- CURL.SetOptionPostFields
- CURL.SetOptionPostRedir
- CURL.SetOptionPreQuote
- CURL.SetOptionProtocols
- CURL.SetOptionProxyAuth
- CURL.SetOptionQuote
Created 18th August 2014, last changed 8th November 2017
CURL.SetOptionPostFields - CURL.SetOptionPostRedir
Feedback: Report problem or ask question.
Links
MBS Xojo Plugins