aboutsummaryrefslogtreecommitdiff
path: root/lib/url.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2006-07-25 22:45:21 +0000
committerDaniel Stenberg <daniel@haxx.se>2006-07-25 22:45:21 +0000
commit2527b5301946539363754a390974cdd3a3d34485 (patch)
treecb3118d3490244ef1ed0e9ca624501ec60e3fe24 /lib/url.c
parent78a47826b26d666586dc98028f38b5a0d6f59ad2 (diff)
Dan Nelson added the CURLOPT_FTP_ALTERNATIVE_TO_USER libcurl option and curl
tool option named --ftp-alternative-to-user. It provides a mean to send a particular command if the normal USER/PASS approach fails.
Diffstat (limited to 'lib/url.c')
-rw-r--r--lib/url.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/url.c b/lib/url.c
index 17e3a7f57..b25d02be8 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -1546,6 +1546,10 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option,
data->set.connect_only = va_arg(param, long)?TRUE:FALSE;
break;
+ case CURLOPT_FTP_ALTERNATIVE_TO_USER:
+ data->set.ftp_alternative_to_user = va_arg(param, char *);
+ break;
+
default:
/* unknown tag and its companion, just ignore: */
result = CURLE_FAILED_INIT; /* correct this */