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.SetOptionFTPFileMethod

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

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

Parameters

Parameter Description Example value
Handle The CURL session handle. $curl
Value Which CWD command to use. 0

Result

Returns "OK" on success.

Description

Which command to use for reaching a file.
Pass a long that should have one of the following values. This option controls what method libcurl should use to reach a file on a FTP(S) server. The argument should be one of the following alternatives:

CURLFTPMETHOD_DEFAULT0default
CURLFTPMETHOD_MULTICWD1libcurl does a single CWD operation for each path part in the given URL. For deep hierarchies this means many commands. This is how RFC 1738 says it should be done. This is the default but the slowest behavior.
CURLFTPMETHOD_NOCWD2libcurl does no CWD at all. libcurl will do SIZE, RETR, STOR etc and give a full path to the server for all these commands. This is the fastest behavior.
CURLFTPMETHOD_SINGLECWD3libcurl does one CWD with the full target directory and then operates on the file "normally" (like in the multicwd case). This is somewhat more standards compliant than 'nocwd' but without the full penalty of 'multicwd'.

Feedback: Report problem or ask question.




Links
MBS Real Studio PDF Plugins - Nachhilfe in Kell