Loading src/main.c +19 −4 Original line number Diff line number Diff line Loading @@ -410,6 +410,7 @@ static void help(void) " --crlf Convert LF to CRLF in upload", " -f/--fail Fail silently (no output at all) on errors (H)", " --ftp-create-dirs Create the remote dirs if not present (F)", " --ftp-ssl Enable SSL/TLS for the ftp transfer (F)", " -F/--form <name=content> Specify HTTP multipart POST data (H)", " -g/--globoff Disable URL sequences and ranges using {} and []", " -G/--get Send the -d data with a HTTP GET (H)", Loading Loading @@ -591,6 +592,8 @@ struct Configurable { time_t lastrecvtime; size_t lastrecvsize; bool ftp_ssl; }; /* global variable to hold info about libcurl */ Loading Loading @@ -1153,8 +1156,8 @@ static ParameterError getparameter(char *flag, /* f or -long-flag */ boolean whether it takes an additional argument */ struct LongShort aliases[]= { /* all these ones, starting with "*" as a short-option have *no* short option to mention. */ /* all these ones, starting with "*" or "$" as a short-option have *no* short option to mention. */ {"*", "url", TRUE}, {"*a", "random-file", TRUE}, {"*b", "egd-file", TRUE}, Loading Loading @@ -1186,6 +1189,7 @@ static ParameterError getparameter(char *flag, /* f or -long-flag */ {"*x", "krb4", TRUE}, {"*y", "max-filesize", TRUE}, {"*z", "disable-eprt", FALSE}, {"$a", "ftp-ssl", FALSE}, {"0", "http1.0", FALSE}, {"1", "tlsv1", FALSE}, {"2", "sslv2", FALSE}, Loading Loading @@ -1495,6 +1499,13 @@ static ParameterError getparameter(char *flag, /* f or -long-flag */ } } break; case '$': /* more options without a short option */ switch(subletter) { case 'a': /* --ftp-ssl */ config->ftp_ssl ^= TRUE; break; } break; case '#': /* added 19990617 larsa */ config->progressmode ^= CURL_PROGRESS_BAR; break; Loading Loading @@ -3288,6 +3299,10 @@ operate(struct Configurable *config, int argc, char *argv[]) if(config->max_filesize) curl_easy_setopt(curl, CURLOPT_MAXFILESIZE, config->max_filesize); /* new in curl 7.10.9 */ if(config->ftp_ssl) curl_easy_setopt(curl, CURLOPT_FTP_SSL, CURLFTPSSL_TRY); res = curl_easy_perform(curl); if((config->progressmode == CURL_PROGRESS_BAR) && Loading Loading
src/main.c +19 −4 Original line number Diff line number Diff line Loading @@ -410,6 +410,7 @@ static void help(void) " --crlf Convert LF to CRLF in upload", " -f/--fail Fail silently (no output at all) on errors (H)", " --ftp-create-dirs Create the remote dirs if not present (F)", " --ftp-ssl Enable SSL/TLS for the ftp transfer (F)", " -F/--form <name=content> Specify HTTP multipart POST data (H)", " -g/--globoff Disable URL sequences and ranges using {} and []", " -G/--get Send the -d data with a HTTP GET (H)", Loading Loading @@ -591,6 +592,8 @@ struct Configurable { time_t lastrecvtime; size_t lastrecvsize; bool ftp_ssl; }; /* global variable to hold info about libcurl */ Loading Loading @@ -1153,8 +1156,8 @@ static ParameterError getparameter(char *flag, /* f or -long-flag */ boolean whether it takes an additional argument */ struct LongShort aliases[]= { /* all these ones, starting with "*" as a short-option have *no* short option to mention. */ /* all these ones, starting with "*" or "$" as a short-option have *no* short option to mention. */ {"*", "url", TRUE}, {"*a", "random-file", TRUE}, {"*b", "egd-file", TRUE}, Loading Loading @@ -1186,6 +1189,7 @@ static ParameterError getparameter(char *flag, /* f or -long-flag */ {"*x", "krb4", TRUE}, {"*y", "max-filesize", TRUE}, {"*z", "disable-eprt", FALSE}, {"$a", "ftp-ssl", FALSE}, {"0", "http1.0", FALSE}, {"1", "tlsv1", FALSE}, {"2", "sslv2", FALSE}, Loading Loading @@ -1495,6 +1499,13 @@ static ParameterError getparameter(char *flag, /* f or -long-flag */ } } break; case '$': /* more options without a short option */ switch(subletter) { case 'a': /* --ftp-ssl */ config->ftp_ssl ^= TRUE; break; } break; case '#': /* added 19990617 larsa */ config->progressmode ^= CURL_PROGRESS_BAR; break; Loading Loading @@ -3288,6 +3299,10 @@ operate(struct Configurable *config, int argc, char *argv[]) if(config->max_filesize) curl_easy_setopt(curl, CURLOPT_MAXFILESIZE, config->max_filesize); /* new in curl 7.10.9 */ if(config->ftp_ssl) curl_easy_setopt(curl, CURLOPT_FTP_SSL, CURLFTPSSL_TRY); res = curl_easy_perform(curl); if((config->progressmode == CURL_PROGRESS_BAR) && Loading