Loading src/main.c +11 −2 Original line number Diff line number Diff line Loading @@ -363,6 +363,7 @@ static void help(void) " -Y/--speed-limit Stop transfer if below speed-limit for 'speed-time' secs\n" " -z/--time-cond <time> Includes a time condition to the server (H)\n" " -Z/--max-redirs <num> Set maximum number of redirections allowed (H)\n" " -0/--http1.0 Force usage of HTTP 1.0 (H)\n" " -2/--sslv2 Force usage of SSLv2 (H)\n" " -3/--sslv3 Force usage of SSLv3 (H)"); puts(" -#/--progress-bar Display transfer progress as a progress bar\n" Loading Loading @@ -421,6 +422,7 @@ struct Configurable { bool crlf; char *customrequest; char *krb4level; long httpversion; bool progressmode; bool nobuffer; bool globoff; Loading @@ -434,7 +436,7 @@ struct Configurable { struct curl_slist *postquote; long ssl_version; TimeCond timecond; curl_TimeCond timecond; time_t condtime; struct curl_slist *headers; Loading Loading @@ -860,6 +862,7 @@ static ParameterError getparameter(char *flag, /* f or -long-flag */ {"5c", "connect-timeout", TRUE}, {"5d", "ciphers", TRUE}, {"0", "http1.0", FALSE}, {"2", "sslv2", FALSE}, {"3", "sslv3", FALSE}, {"a", "append", FALSE}, Loading Loading @@ -1053,6 +1056,10 @@ static ParameterError getparameter(char *flag, /* f or -long-flag */ case '#': /* added 19990617 larsa */ config->progressmode ^= CURL_PROGRESS_BAR; break; case '0': /* HTTP version 1.0 */ config->httpversion = CURL_HTTP_VERSION_1_0; break; case '2': /* SSL version 2 */ config->ssl_version = 2; Loading Loading @@ -2285,10 +2292,12 @@ operate(struct Configurable *config, int argc, char *argv[]) curl_easy_setopt(curl, CURLOPT_EGDSOCKET, config->egd_file); curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, config->connecttimeout); /* debug */ if(config->cipher_list) curl_easy_setopt(curl, CURLOPT_SSL_CIPHER_LIST, config->cipher_list); if(config->httpversion) curl_easy_setopt(curl, CURLOPT_HTTP_VERSION, config->httpversion); res = curl_easy_perform(curl); if(config->writeout) { Loading Loading
src/main.c +11 −2 Original line number Diff line number Diff line Loading @@ -363,6 +363,7 @@ static void help(void) " -Y/--speed-limit Stop transfer if below speed-limit for 'speed-time' secs\n" " -z/--time-cond <time> Includes a time condition to the server (H)\n" " -Z/--max-redirs <num> Set maximum number of redirections allowed (H)\n" " -0/--http1.0 Force usage of HTTP 1.0 (H)\n" " -2/--sslv2 Force usage of SSLv2 (H)\n" " -3/--sslv3 Force usage of SSLv3 (H)"); puts(" -#/--progress-bar Display transfer progress as a progress bar\n" Loading Loading @@ -421,6 +422,7 @@ struct Configurable { bool crlf; char *customrequest; char *krb4level; long httpversion; bool progressmode; bool nobuffer; bool globoff; Loading @@ -434,7 +436,7 @@ struct Configurable { struct curl_slist *postquote; long ssl_version; TimeCond timecond; curl_TimeCond timecond; time_t condtime; struct curl_slist *headers; Loading Loading @@ -860,6 +862,7 @@ static ParameterError getparameter(char *flag, /* f or -long-flag */ {"5c", "connect-timeout", TRUE}, {"5d", "ciphers", TRUE}, {"0", "http1.0", FALSE}, {"2", "sslv2", FALSE}, {"3", "sslv3", FALSE}, {"a", "append", FALSE}, Loading Loading @@ -1053,6 +1056,10 @@ static ParameterError getparameter(char *flag, /* f or -long-flag */ case '#': /* added 19990617 larsa */ config->progressmode ^= CURL_PROGRESS_BAR; break; case '0': /* HTTP version 1.0 */ config->httpversion = CURL_HTTP_VERSION_1_0; break; case '2': /* SSL version 2 */ config->ssl_version = 2; Loading Loading @@ -2285,10 +2292,12 @@ operate(struct Configurable *config, int argc, char *argv[]) curl_easy_setopt(curl, CURLOPT_EGDSOCKET, config->egd_file); curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, config->connecttimeout); /* debug */ if(config->cipher_list) curl_easy_setopt(curl, CURLOPT_SSL_CIPHER_LIST, config->cipher_list); if(config->httpversion) curl_easy_setopt(curl, CURLOPT_HTTP_VERSION, config->httpversion); res = curl_easy_perform(curl); if(config->writeout) { Loading