Meet us at at Real World in Orlando, Florida.

All functions   Mac OS X   Windows   Crossplatform   Components   Guides  
New in version: 2.0   2.1   2.2   2.3   2.4   2.5   2.6   2.7   2.8  

CURL.SetOptionPreQuote

Component: CURL
Version: 2.5
Mac OS X: Works
Windows: Works

MBS( "CURL.SetOptionPreQuote"; handle; value... )

Parameters

Parameter Description Example value
Handle 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.

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" )

Feedback: Report problem or ask question.




Links
MBS Real Studio Plugins - Pfarrgemeinde Messdiener Nickenich