Lines Matching refs:nextarg

487 GetFileAndPassword(char *nextarg, char **file, char **password)  in GetFileAndPassword()  argument
490 if(nextarg) { in GetFileAndPassword()
491 parse_cert_parameter(nextarg, &certname, &passphrase); in GetFileAndPassword()
573 char *nextarg, in data_urlencode() argument
584 const char *p = strchr(nextarg, '='); in data_urlencode()
591 p = strchr(nextarg, '@'); in data_urlencode()
593 nlen = p - nextarg; /* length of the name part */ in data_urlencode()
600 p = nextarg; in data_urlencode()
648 if(curlx_dyn_addn(&dyn, nextarg, nlen) || in data_urlencode()
814 static ParameterError url_query(char *nextarg, in url_query() argument
824 if(*nextarg == '+') { in url_query()
826 query = strdup(&nextarg[1]); in url_query()
831 err = data_urlencode(global, nextarg, &query, &size); in url_query()
851 char *nextarg, in set_data() argument
861 err = data_urlencode(global, nextarg, &postdata, &size); in set_data()
865 else if('@' == *nextarg && (cmd != C_DATA_RAW)) { in set_data()
868 nextarg++; /* pass the @ */ in set_data()
870 if(!strcmp("-", nextarg)) { in set_data()
876 file = fopen(nextarg, "rb"); in set_data()
878 errorf(global, "Failed to open %s", nextarg); in set_data()
907 err = getstr(&postdata, nextarg, ALLOW_BLANK); in set_data()
932 char *nextarg) in set_rate() argument
943 char *div = strchr(nextarg, '/'); in set_rate()
947 size_t numlen = div ? (size_t)(div - nextarg) : strlen(nextarg); in set_rate()
951 memcpy(number, nextarg, numlen); in set_rate()
1024 char *nextarg, /* NULL if unset */ in getparameter() argument
1089 else if(expand && nextarg) { in getparameter()
1099 err = varexpand(global, nextarg, &nbuf, &replaced); in getparameter()
1105 nextarg = curlx_dyn_ptr(&nbuf); in getparameter()
1132 nextarg = (char *)&parse[1]; /* this is the actual extra parameter */ in getparameter()
1135 else if(!nextarg) { in getparameter()
1147 (nextarg[0] == '-') && nextarg[1]) { in getparameter()
1150 nextarg); in getparameter()
1152 else if(!strncmp("\xe2\x80\x9c", nextarg, 3)) { in getparameter()
1155 nextarg); in getparameter()
1163 if(!nextarg) in getparameter()
1168 nextarg = (char *)""; in getparameter()
1182 err = getstr(&config->dns_ipv4_addr, nextarg, DENY_BLANK); in getparameter()
1189 err = getstr(&config->dns_ipv6_addr, nextarg, DENY_BLANK); in getparameter()
1192 err = getstr(&config->oauth_bearer, nextarg, DENY_BLANK); in getparameter()
1199 err = secs2ms(&config->connecttimeout_ms, nextarg); in getparameter()
1202 err = getstr(&config->doh_url, nextarg, ALLOW_BLANK); in getparameter()
1208 err = getstr(&config->cipher_list, nextarg, DENY_BLANK); in getparameter()
1215 err = getstr(&config->dns_interface, nextarg, DENY_BLANK); in getparameter()
1231 err = getstr(&config->dns_servers, nextarg, DENY_BLANK); in getparameter()
1234 err = getstr(&global->trace_dump, nextarg, DENY_BLANK); in getparameter()
1245 err = getstr(&global->trace_dump, nextarg, DENY_BLANK); in getparameter()
1257 err = GetSizeParameter(global, nextarg, "rate", &value); in getparameter()
1264 err = set_rate(global, nextarg); in getparameter()
1320 err = oct2nummax(&config->create_file_mode, nextarg, 0777); in getparameter()
1325 err = str2num(&config->maxredirs, nextarg); in getparameter()
1331 err = getstr(&config->ipfs_gateway, nextarg, DENY_BLANK); in getparameter()
1346 err = getstr(&config->aws_sigv4, nextarg, DENY_BLANK); in getparameter()
1349 tool_set_stderr_file(global, nextarg); in getparameter()
1353 err = getstr(&config->iface, nextarg, DENY_BLANK); in getparameter()
1360 err = getstr(&config->krblevel, nextarg, DENY_BLANK); in getparameter()
1366 err = getstr(&config->haproxy_clientip, nextarg, DENY_BLANK); in getparameter()
1369 err = GetSizeParameter(global, nextarg, "max-filesize", &value); in getparameter()
1406 err = getstr(&url->url, nextarg, DENY_BLANK); in getparameter()
1428 err = getstr(&config->proxy, nextarg, DENY_BLANK); in getparameter()
1432 err = getstr(&config->proxy, nextarg, DENY_BLANK); in getparameter()
1436 err = getstr(&config->proxy, nextarg, DENY_BLANK); in getparameter()
1440 err = getstr(&config->proxy, nextarg, DENY_BLANK); in getparameter()
1449 find.name = nextarg; in getparameter()
1456 err = str2unummax(&config->ip_tos, nextarg, 0xFF); in getparameter()
1460 err = str2unummax(&config->vlan_priority, nextarg, 7); in getparameter()
1469 err = str2unum(&config->req_retry, nextarg); in getparameter()
1475 err = str2unummax(&config->retry_delay, nextarg, LONG_MAX/1000); in getparameter()
1478 err = str2unummax(&config->retry_maxtime, nextarg, LONG_MAX/1000); in getparameter()
1495 err = getstr(&config->ftp_account, nextarg, DENY_BLANK); in getparameter()
1510 config->ftp_filemethod = ftpfilemethod(config, nextarg); in getparameter()
1516 char *p = nextarg; in getparameter()
1527 err = str2unum(&config->localport, nextarg); in getparameter()
1547 err = getstr(&config->ftp_alternative_to_user, nextarg, DENY_BLANK); in getparameter()
1573 config->ftp_ssl_ccc_mode = ftpcccmethod(config, nextarg); in getparameter()
1581 err = getstr(&global->libcurl, nextarg, DENY_BLANK); in getparameter()
1591 err = str2unum(&config->alivetime, nextarg); in getparameter()
1594 err = str2unum(&config->alivecnt, nextarg); in getparameter()
1607 err = getstr(&config->noproxy, nextarg, ALLOW_BLANK); in getparameter()
1614 err = getstr(&config->proxy, nextarg, DENY_BLANK); in getparameter()
1618 err = str2unum(&config->tftp_blksize, nextarg); in getparameter()
1621 err = getstr(&config->mail_from, nextarg, DENY_BLANK); in getparameter()
1625 err = add2list(&config->mail_rcpt, nextarg); in getparameter()
1632 err = proto2num(config, built_in_protos, &config->proto_str, nextarg); in getparameter()
1637 nextarg)) in getparameter()
1641 err = add2list(&config->resolve, nextarg); in getparameter()
1644 config->gssapi_delegation = delegation(config, nextarg); in getparameter()
1647 err = getstr(&config->mail_auth, nextarg, DENY_BLANK); in getparameter()
1654 err = getstr(&config->sasl_authzid, nextarg, DENY_BLANK); in getparameter()
1669 err = getstr(&config->unix_socket_path, nextarg, DENY_BLANK); in getparameter()
1675 err = getstr(&config->proxy_service_name, nextarg, DENY_BLANK); in getparameter()
1678 err = getstr(&config->service_name, nextarg, DENY_BLANK); in getparameter()
1681 err = getstr(&config->proto_default, nextarg, DENY_BLANK); in getparameter()
1686 err = secs2ms(&config->expect100timeout_ms, nextarg); in getparameter()
1692 err = add2list(&config->connect_to, nextarg); in getparameter()
1696 err = getstr(&config->unix_socket_path, nextarg, DENY_BLANK); in getparameter()
1703 err = str2tls_max(&config->ssl_version_max, nextarg); in getparameter()
1712 err = str2unum(&config->happy_eyeballs_timeout_ms, nextarg); in getparameter()
1719 if(set_trace_config(global, nextarg)) in getparameter()
1729 err = setvariable(global, nextarg); in getparameter()
1794 err = getstr(&config->cipher13_list, nextarg, DENY_BLANK); in getparameter()
1797 err = getstr(&config->proxy_cipher13_list, nextarg, DENY_BLANK); in getparameter()
1816 err = getstr(&config->useragent, nextarg, ALLOW_BLANK); in getparameter()
1822 err = getstr(&config->altsvc, nextarg, ALLOW_BLANK); in getparameter()
1828 err = getstr(&config->hsts, nextarg, ALLOW_BLANK); in getparameter()
1831 if(strchr(nextarg, '=')) { in getparameter()
1833 err = add2list(&config->cookies, nextarg); in getparameter()
1838 err = add2list(&config->cookiefiles, nextarg); in getparameter()
1845 err = getstr(&config->cookiejar, nextarg, DENY_BLANK); in getparameter()
1849 if(strcmp(nextarg, "-")) { in getparameter()
1850 err = str2offset(&config->resume_from, nextarg); in getparameter()
1865 err = set_data(cmd, nextarg, global, config); in getparameter()
1868 err = url_query(nextarg, global, config); in getparameter()
1874 err = getstr(&config->headerfile, nextarg, DENY_BLANK); in getparameter()
1877 char *ptr = strstr(nextarg, ";auto"); in getparameter()
1886 ptr = *nextarg ? nextarg : NULL; in getparameter()
1892 GetFileAndPassword(nextarg, &config->cert, &config->key_passwd); in getparameter()
1895 err = getstr(&config->cacert, nextarg, DENY_BLANK); in getparameter()
1904 err = getstr(&config->cert_type, nextarg, DENY_BLANK); in getparameter()
1907 err = getstr(&config->key, nextarg, DENY_BLANK); in getparameter()
1910 err = getstr(&config->key_type, nextarg, DENY_BLANK); in getparameter()
1913 err = getstr(&config->key_passwd, nextarg, DENY_BLANK); in getparameter()
1917 err = getstr(&config->engine, nextarg, DENY_BLANK); in getparameter()
1926 else if(strlen(nextarg) > 4 && strncasecompare("pn:", nextarg, 3)) { in getparameter()
1928 err = getstr(&config->ech_public, nextarg, DENY_BLANK); in getparameter()
1930 else if(strlen(nextarg) > 5 && strncasecompare("ecl:", nextarg, 4)) { in getparameter()
1932 if('@' != *(nextarg + 4)) { in getparameter()
1933 err = getstr(&config->ech_config, nextarg, DENY_BLANK); in getparameter()
1940 nextarg++; /* skip over '@' */ in getparameter()
1941 if(!strcmp("-", nextarg)) { in getparameter()
1945 file = fopen(nextarg, FOPEN_READTEXT); in getparameter()
1951 nextarg); in getparameter()
1967 err = getstr(&config->ech, nextarg, DENY_BLANK); in getparameter()
1971 err = getstr(&config->capath, nextarg, DENY_BLANK); in getparameter()
1974 err = getstr(&config->pubkey, nextarg, DENY_BLANK); in getparameter()
1977 err = getstr(&config->hostpubmd5, nextarg, DENY_BLANK); in getparameter()
1984 err = getstr(&config->hostpubsha256, nextarg, DENY_BLANK); in getparameter()
1987 err = getstr(&config->crlfile, nextarg, DENY_BLANK); in getparameter()
1993 err = getstr(&config->tls_username, nextarg, DENY_BLANK); in getparameter()
2000 err = getstr(&config->tls_password, nextarg, ALLOW_BLANK); in getparameter()
2007 err = getstr(&config->tls_authtype, nextarg, DENY_BLANK); in getparameter()
2025 err = getstr(&config->pinnedpubkey, nextarg, DENY_BLANK); in getparameter()
2028 err = getstr(&config->proxy_pinnedpubkey, nextarg, DENY_BLANK); in getparameter()
2055 err = getstr(&config->proxy_tls_username, nextarg, ALLOW_BLANK); in getparameter()
2062 err = getstr(&config->proxy_tls_password, nextarg, DENY_BLANK); in getparameter()
2068 err = getstr(&config->proxy_tls_authtype, nextarg, DENY_BLANK); in getparameter()
2075 GetFileAndPassword(nextarg, &config->proxy_cert, in getparameter()
2079 err = getstr(&config->proxy_cert_type, nextarg, DENY_BLANK); in getparameter()
2082 err = getstr(&config->proxy_key, nextarg, ALLOW_BLANK); in getparameter()
2085 err = getstr(&config->proxy_key_type, nextarg, DENY_BLANK); in getparameter()
2088 err = getstr(&config->proxy_key_passwd, nextarg, ALLOW_BLANK); in getparameter()
2092 err = getstr(&config->proxy_cipher_list, nextarg, DENY_BLANK); in getparameter()
2095 err = getstr(&config->proxy_crlfile, nextarg, DENY_BLANK); in getparameter()
2102 err = getstr(&config->login_options, nextarg, ALLOW_BLANK); in getparameter()
2105 err = getstr(&config->proxy_cacert, nextarg, DENY_BLANK); in getparameter()
2108 err = getstr(&config->proxy_capath, nextarg, DENY_BLANK); in getparameter()
2130 err = getstr(&config->etag_save_file, nextarg, DENY_BLANK); in getparameter()
2133 err = getstr(&config->etag_compare_file, nextarg, DENY_BLANK); in getparameter()
2136 err = getstr(&config->ssl_ec_curves, nextarg, DENY_BLANK); in getparameter()
2171 nextarg, in getparameter()
2186 err = getstr(&config->request_target, nextarg, DENY_BLANK); in getparameter()
2190 if(*nextarg) { in getparameter()
2191 global->help_category = strdup(nextarg); in getparameter()
2204 if(nextarg[0] == '@') { in getparameter()
2208 bool use_stdin = !strcmp(&nextarg[1], "-"); in getparameter()
2209 FILE *file = use_stdin ? stdin : fopen(&nextarg[1], FOPEN_READTEXT); in getparameter()
2211 errorf(global, "Failed to open %s", &nextarg[1]); in getparameter()
2237 err = add2list(&config->proxyheaders, nextarg); in getparameter()
2239 err = add2list(&config->headers, nextarg); in getparameter()
2267 if(parseconfig(nextarg, global)) { in getparameter()
2268 errorf(global, "cannot read config from '%s'", nextarg); in getparameter()
2285 err = secs2ms(&config->timeout_ms, nextarg); in getparameter()
2300 err = getstr(&config->netrc_file, nextarg, DENY_BLANK); in getparameter()
2316 err = getstr(&config->output_dir, nextarg, DENY_BLANK); in getparameter()
2352 err = getstr(&url->outfile, nextarg, DENY_BLANK); in getparameter()
2370 err = getstr(&config->ftpport, nextarg, DENY_BLANK); in getparameter()
2383 switch(nextarg[0]) { in getparameter()
2386 nextarg++; in getparameter()
2387 err = add2list(&config->postquote, nextarg); in getparameter()
2391 nextarg++; in getparameter()
2392 err = add2list(&config->prequote, nextarg); in getparameter()
2395 err = add2list(&config->quote, nextarg); in getparameter()
2404 if(ISDIGIT(*nextarg) && !strchr(nextarg, '-')) { in getparameter()
2406 if(curlx_strtoofft(nextarg, NULL, 10, &value)) { in getparameter()
2424 const char *tmp_range = nextarg; in getparameter()
2435 err = getstr(&config->range, nextarg, DENY_BLANK); in getparameter()
2453 err = add2list(&config->telnet_options, nextarg); in getparameter()
2481 if(!*nextarg) in getparameter()
2485 err = getstr(&url->infile, nextarg, DENY_BLANK); in getparameter()
2490 err = getstr(&config->userpwd, nextarg, ALLOW_BLANK); in getparameter()
2495 err = getstr(&config->proxyuserpwd, nextarg, ALLOW_BLANK); in getparameter()
2558 if('@' == *nextarg) { in getparameter()
2563 nextarg++; /* pass the @ */ in getparameter()
2564 if(!strcmp("-", nextarg)) { in getparameter()
2569 fname = nextarg; in getparameter()
2587 err = getstr(&config->writeout, nextarg, ALLOW_BLANK); in getparameter()
2590 err = getstr(&config->preproxy, nextarg, DENY_BLANK); in getparameter()
2594 err = getstr(&config->proxy, nextarg, ALLOW_BLANK); in getparameter()
2600 err = getstr(&config->customrequest, nextarg, DENY_BLANK); in getparameter()
2604 err = str2unum(&config->low_speed_time, nextarg); in getparameter()
2610 err = str2unum(&config->low_speed_limit, nextarg); in getparameter()
2619 err = str2unum(&val, nextarg); in getparameter()
2634 switch(*nextarg) { in getparameter()
2636 nextarg++; in getparameter()
2645 nextarg++; in getparameter()
2650 nextarg++; in getparameter()
2653 config->condtime = (curl_off_t)curl_getdate(nextarg, NULL); in getparameter()
2656 rc = getfiletime(nextarg, global, &value); in getparameter()
2683 free(nextarg); in getparameter()
2709 char *nextarg = NULL; in parse_args() local
2711 nextarg = curlx_convert_tchar_to_UTF8(argv[i + 1]); in parse_args()
2712 if(!nextarg) { in parse_args()
2718 result = getparameter(orig_opt, nextarg, argv[i + 1], &passarg, in parse_args()
2721 curlx_unicodefree(nextarg); in parse_args()