diff options
author | Daniel Stenberg <daniel@haxx.se> | 2006-07-25 22:45:21 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2006-07-25 22:45:21 +0000 |
commit | 2527b5301946539363754a390974cdd3a3d34485 (patch) | |
tree | cb3118d3490244ef1ed0e9ca624501ec60e3fe24 /lib/url.c | |
parent | 78a47826b26d666586dc98028f38b5a0d6f59ad2 (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.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 */ |