Lines Matching refs:global
504 static ParameterError GetSizeParameter(struct GlobalConfig *global, in GetSizeParameter() argument
513 warnf(global, "invalid number specified for %s", which); in GetSizeParameter()
546 warnf(global, "unsupported %s unit. Use G, M, K or B", which); in GetSizeParameter()
572 static ParameterError data_urlencode(struct GlobalConfig *global, in data_urlencode() argument
612 errorf(global, "Failed to open %s", p); in data_urlencode()
674 static void sethttpver(struct GlobalConfig *global, in sethttpver() argument
680 warnf(global, "Overrides previous HTTP version option"); in sethttpver()
685 static CURLcode set_trace_config(struct GlobalConfig *global, in set_trace_config() argument
716 global->traceids = toggle; in set_trace_config()
717 global->tracetime = toggle; in set_trace_config()
723 global->traceids = toggle; in set_trace_config()
726 global->tracetime = toggle; in set_trace_config()
815 struct GlobalConfig *global, in url_query() argument
831 err = data_urlencode(global, nextarg, &query, &size); in url_query()
852 struct GlobalConfig *global, in set_data() argument
861 err = data_urlencode(global, nextarg, &postdata, &size); in set_data()
878 errorf(global, "Failed to open %s", nextarg); in set_data()
931 static ParameterError set_rate(struct GlobalConfig *global, in set_rate() argument
989 errorf(global, "unsupported --rate unit"); in set_rate()
996 errorf(global, "too large --rate unit"); in set_rate()
1008 global->ms_per_transfer = numerator/denominator; in set_rate()
1028 struct GlobalConfig *global, in getparameter() argument
1099 err = varexpand(global, nextarg, &nbuf, &replaced); in getparameter()
1149 warnf(global, "The filename argument '%s' looks like a flag.", in getparameter()
1153 warnf(global, "The argument '%s' starts with a Unicode quote where " in getparameter()
1174 warnf(global, "--%s is deprecated and has no function anymore", in getparameter()
1234 err = getstr(&global->trace_dump, nextarg, DENY_BLANK); in getparameter()
1236 if(global->tracetype && (global->tracetype != TRACE_BIN)) in getparameter()
1237 warnf(global, "--trace overrides an earlier trace/verbose option"); in getparameter()
1238 global->tracetype = TRACE_BIN; in getparameter()
1242 warnf(global, "--npn is no longer supported"); in getparameter()
1245 err = getstr(&global->trace_dump, nextarg, DENY_BLANK); in getparameter()
1247 if(global->tracetype && (global->tracetype != TRACE_ASCII)) in getparameter()
1248 warnf(global, in getparameter()
1250 global->tracetype = TRACE_ASCII; in getparameter()
1257 err = GetSizeParameter(global, nextarg, "rate", &value); in getparameter()
1264 err = set_rate(global, nextarg); in getparameter()
1349 tool_set_stderr_file(global, nextarg); in getparameter()
1369 err = GetSizeParameter(global, nextarg, "max-filesize", &value); in getparameter()
1417 warnf(global, in getparameter()
1501 global->tracetime = toggle; in getparameter()
1577 warnf(global, in getparameter()
1581 err = getstr(&global->libcurl, nextarg, DENY_BLANK); in getparameter()
1650 errorf(global, "--metalink is disabled"); in getparameter()
1661 global->test_duphandle = toggle; in getparameter()
1664 global->test_event_based = toggle; in getparameter()
1716 global->traceids = toggle; in getparameter()
1719 if(set_trace_config(global, nextarg)) in getparameter()
1723 global->noprogress = !toggle; in getparameter()
1726 global->progressmode = toggle ? CURL_PROGRESS_BAR : CURL_PROGRESS_STATS; in getparameter()
1729 err = setvariable(global, nextarg); in getparameter()
1736 sethttpver(global, config, CURL_HTTP_VERSION_1_0); in getparameter()
1740 sethttpver(global, config, CURL_HTTP_VERSION_1_1); in getparameter()
1746 sethttpver(global, config, CURL_HTTP_VERSION_2_0); in getparameter()
1752 sethttpver(global, config, CURL_HTTP_VERSION_2_PRIOR_KNOWLEDGE); in getparameter()
1759 sethttpver(global, config, CURL_HTTP_VERSION_3); in getparameter()
1766 sethttpver(global, config, CURL_HTTP_VERSION_3ONLY); in getparameter()
1800 warnf(global, "Ignores instruction to use SSLv2"); in getparameter()
1803 warnf(global, "Ignores instruction to use SSLv3"); in getparameter()
1865 err = set_data(cmd, nextarg, global, config); in getparameter()
1868 err = url_query(nextarg, global, config); in getparameter()
1948 warnf(global, in getparameter()
2139 global->fail_early = toggle; in getparameter()
2142 global->styled_output = toggle; in getparameter()
2150 errorf(config->global, "You must select either --fail or " in getparameter()
2161 errorf(config->global, "You must select either --fail or " in getparameter()
2191 global->help_category = strdup(nextarg); in getparameter()
2192 if(!global->help_category) { in getparameter()
2211 errorf(global, "Failed to open %s", &nextarg[1]); in getparameter()
2267 if(parseconfig(nextarg, global)) { in getparameter()
2268 errorf(global, "cannot read config from '%s'", nextarg); in getparameter()
2290 warnf(global, in getparameter()
2407 warnf(global, "unsupported range point"); in getparameter()
2411 warnf(global, in getparameter()
2427 warnf(global, "Invalid character is found in given range. " in getparameter()
2443 global->silent = toggle; in getparameter()
2449 global->showerror = toggle; in getparameter()
2502 global->verbosity = 0; in getparameter()
2503 if(set_trace_config(global, "-all")) in getparameter()
2505 global->tracetype = TRACE_NONE; in getparameter()
2510 global->verbosity = 0; in getparameter()
2511 if(set_trace_config(global, "-all")) { in getparameter()
2517 switch(global->verbosity) { in getparameter()
2519 global->verbosity = 1; in getparameter()
2520 Curl_safefree(global->trace_dump); in getparameter()
2521 global->trace_dump = strdup("%"); in getparameter()
2522 if(!global->trace_dump) in getparameter()
2525 if(global->tracetype && (global->tracetype != TRACE_PLAIN)) in getparameter()
2526 warnf(global, in getparameter()
2528 global->tracetype = TRACE_PLAIN; in getparameter()
2532 global->verbosity = 2; in getparameter()
2533 if(set_trace_config(global, "ids,time,protocol")) in getparameter()
2537 global->verbosity = 3; in getparameter()
2538 global->tracetype = TRACE_ASCII; in getparameter()
2539 if(set_trace_config(global, "ssl,read,write")) in getparameter()
2543 global->verbosity = 4; in getparameter()
2544 if(set_trace_config(global, "network")) in getparameter()
2572 errorf(global, "Failed to open %s", fname); in getparameter()
2584 warnf(global, "Failed to read %s", fname); in getparameter()
2615 global->parallel = toggle; in getparameter()
2623 global->parallel_max = MAX_PARALLEL; in getparameter()
2625 global->parallel_max = PARALLEL_DEFAULT; in getparameter()
2627 global->parallel_max = (unsigned short)val; in getparameter()
2631 global->parallel_connect = toggle; in getparameter()
2656 rc = getfiletime(nextarg, global, &value); in getparameter()
2663 warnf(global, in getparameter()
2687 ParameterError parse_args(struct GlobalConfig *global, int argc, in parse_args() argument
2694 struct OperationConfig *config = global->first; in parse_args()
2719 global, config); in parse_args()
2722 config = global->last; in parse_args()
2736 config->next->global = global; in parse_args()
2739 global->last = config->next; in parse_args()
2749 errorf(global, "missing URL before --next"); in parse_args()
2761 result = getparameter("--url", orig_opt, argv[i], &used, global, config); in parse_args()