Lines Matching refs:global

775 static ParameterError GetSizeParameter(struct GlobalConfig *global,
784 warnf(global, "invalid number specified for %s", which);
817 warnf(global, "unsupported %s unit. Use G, M, K or B", which);
840 static ParameterError data_urlencode(struct GlobalConfig *global,
879 errorf(global, "Failed to open %s", p);
935 static void sethttpver(struct GlobalConfig *global,
941 warnf(global, "Overrides previous HTTP version option");
946 static CURLcode set_trace_config(struct GlobalConfig *global,
977 global->traceids = toggle;
978 global->tracetime = toggle;
984 global->traceids = toggle;
987 global->tracetime = toggle;
1029 struct GlobalConfig *global,
1045 err = data_urlencode(global, nextarg, &query, &size);
1066 struct GlobalConfig *global,
1075 err = data_urlencode(global, nextarg, &postdata, &size);
1092 errorf(global, "Failed to open %s", nextarg);
1146 static ParameterError set_rate(struct GlobalConfig *global,
1190 errorf(global, "unsupported --rate unit");
1201 global->ms_per_transfer = numerator/denominator;
1212 struct GlobalConfig *global,
1286 err = varexpand(global, nextarg, &nbuf, &replaced);
1336 warnf(global, "The file name argument '%s' looks like a flag.",
1414 err = getstr(&global->trace_dump, nextarg, DENY_BLANK);
1416 if(global->tracetype && (global->tracetype != TRACE_BIN))
1417 warnf(global, "--trace overrides an earlier trace/verbose option");
1418 global->tracetype = TRACE_BIN;
1422 warnf(global, "--npn is no longer supported");
1425 err = getstr(&global->trace_dump, nextarg, DENY_BLANK);
1427 if(global->tracetype && (global->tracetype != TRACE_ASCII))
1428 warnf(global,
1430 global->tracetype = TRACE_ASCII;
1437 err = GetSizeParameter(global, nextarg, "rate", &value);
1444 err = set_rate(global, nextarg);
1535 tool_set_stderr_file(global, nextarg);
1555 err = GetSizeParameter(global, nextarg, "max-filesize", &value);
1602 warnf(global,
1669 global->tracetime = toggle;
1745 warnf(global,
1749 err = getstr(&global->libcurl, nextarg, DENY_BLANK);
1815 errorf(global, "--metalink is disabled");
1826 global->test_event_based = toggle;
1828 warnf(global, "--test-event is ignored unless a debug build");
1876 global->traceids = toggle;
1879 if(set_trace_config(global, nextarg))
1883 global->noprogress = !toggle;
1886 global->progressmode = toggle ? CURL_PROGRESS_BAR : CURL_PROGRESS_STATS;
1889 err = setvariable(global, nextarg);
1896 sethttpver(global, config, CURL_HTTP_VERSION_1_0);
1900 sethttpver(global, config, CURL_HTTP_VERSION_1_1);
1906 sethttpver(global, config, CURL_HTTP_VERSION_2_0);
1912 sethttpver(global, config, CURL_HTTP_VERSION_2_PRIOR_KNOWLEDGE);
1919 sethttpver(global, config, CURL_HTTP_VERSION_3);
1926 sethttpver(global, config, CURL_HTTP_VERSION_3ONLY);
1960 warnf(global, "Ignores instruction to use SSLv2");
1963 warnf(global, "Ignores instruction to use SSLv3");
2025 err = set_data(cmd, nextarg, global, config);
2028 err = url_query(nextarg, global, config);
2249 global->fail_early = toggle;
2252 global->styled_output = toggle;
2260 errorf(config->global, "You must select either --fail or "
2271 errorf(config->global, "You must select either --fail or "
2301 global->help_category = strdup(nextarg);
2302 if(!global->help_category) {
2321 errorf(global, "Failed to open %s", &nextarg[1]);
2377 if(parseconfig(nextarg, global)) {
2378 errorf(global, "cannot read config from '%s'", nextarg);
2400 warnf(global,
2517 warnf(global, "unsupported range point");
2521 warnf(global,
2537 warnf(global, "Invalid character is found in given range. "
2553 global->silent = toggle;
2556 global->showerror = toggle;
2608 Curl_safefree(global->trace_dump);
2609 global->trace_dump = strdup("%");
2610 if(!global->trace_dump)
2613 if(global->tracetype && (global->tracetype != TRACE_PLAIN))
2614 warnf(global,
2616 global->tracetype = TRACE_PLAIN;
2621 global->tracetype = TRACE_NONE;
2643 errorf(global, "Failed to open %s", fname);
2655 warnf(global, "Failed to read %s", fname);
2686 global->parallel = toggle;
2694 global->parallel_max = MAX_PARALLEL;
2696 global->parallel_max = PARALLEL_DEFAULT;
2698 global->parallel_max = (unsigned short)val;
2702 global->parallel_connect = toggle;
2728 rc = getfiletime(nextarg, global, &value);
2735 warnf(global,
2756 ParameterError parse_args(struct GlobalConfig *global, int argc,
2763 struct OperationConfig *config = global->first;
2788 global, config);
2791 config = global->last;
2804 /* Set the global config pointer */
2805 config->next->global = global;
2808 global->last = config->next;
2818 errorf(global, "missing URL before --next");
2830 result = getparameter("--url", orig_opt, argv[i], &used, global, config);