aboutsummaryrefslogtreecommitdiff
path: root/include/curl/curl.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2006-03-14 00:05:15 +0000
committerDaniel Stenberg <daniel@haxx.se>2006-03-14 00:05:15 +0000
commitbac52f3969738c81c90a8cb09805d38509ca3297 (patch)
treeed4eaca5bfa80bb4354cfb4b2f5c60f79c6f09dd /include/curl/curl.h
parentd494d629539d3d9d0afd708a44b9a4b0f8f8dba2 (diff)
--ftp-method and CURLOPT_FTP_FILEMETHOD are now documented and usable
Diffstat (limited to 'include/curl/curl.h')
-rw-r--r--include/curl/curl.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/include/curl/curl.h b/include/curl/curl.h
index 1ad282df8..d531ba637 100644
--- a/include/curl/curl.h
+++ b/include/curl/curl.h
@@ -381,6 +381,15 @@ typedef enum {
CURLFTPAUTH_LAST /* not an option, never use */
} curl_ftpauth;
+/* parameter for the CURLOPT_FTP_FILEMETHOD option */
+typedef enum {
+ CURLFTPMETHOD_DEFAULT, /* let libcurl pick */
+ CURLFTPMETHOD_MULTICWD, /* single CWD operation for each path part */
+ CURLFTPMETHOD_NOCWD, /* no CWD at all */
+ CURLFTPMETHOD_SINGLECWD, /* one CWD to full dir, then work on file */
+ CURLFTPMETHOD_LAST /* not an option, never use */
+} curl_ftpmethod;
+
/* long may be 32 or 64 bits, but we should never depend on anything else
but 32 */
#define CURLOPTTYPE_LONG 0
@@ -912,7 +921,8 @@ typedef enum {
control connection. */
CINIT(FTP_SKIP_PASV_IP, LONG, 137),
- /* Select "file method" to use when doing FTP */
+ /* Select "file method" to use when doing FTP, see the curl_ftpmethod
+ above. */
CINIT(FTP_FILEMETHOD, LONG, 138),
/* Local port number to bind the socket to */