Home | History | Annotate | Download | only in src

Lines Matching defs:nextarg

426 GetFileAndPassword(char *nextarg, char **file, char **password)
429 parse_cert_parameter(nextarg, &certname, &passphrase);
436 cleanarg(nextarg);
492 char *nextarg, /* NULL if unset */
580 nextarg = (char *)&parse[1]; /* this is the actual extra parameter */
583 else if(!nextarg)
589 (nextarg[0] == '-') && nextarg[1]) {
592 nextarg);
603 GetStr(&config->dns_ipv4_addr, nextarg);
607 GetStr(&config->dns_ipv6_addr, nextarg);
610 GetStr(&config->random_file, nextarg);
613 GetStr(&config->egd_file, nextarg);
616 GetStr(&config->oauth_bearer, nextarg);
620 err = str2udouble(&config->connecttimeout, nextarg,
626 GetStr(&config->doh_url, nextarg);
629 GetStr(&config->cipher_list, nextarg);
633 GetStr(&config->dns_interface, nextarg);
646 GetStr(&config->dns_servers, nextarg);
649 GetStr(&global->trace_dump, nextarg);
658 GetStr(&global->trace_dump, nextarg);
670 ParameterError pe = GetSizeParameter(global, nextarg, "rate", &value);
759 err = str2num(&config->maxredirs, nextarg);
779 if(strcmp(nextarg, "-")) {
780 FILE *newfile = fopen(nextarg, FOPEN_WRITETEXT);
782 warnf(global, "Failed to open %s!\n", nextarg);
795 GetStr(&config->iface, nextarg);
800 GetStr(&config->krblevel, nextarg);
811 GetSizeParameter(global, nextarg, "max-filesize", &value);
854 GetStr(&url->url, nextarg);
871 GetStr(&config->proxy, nextarg);
875 GetStr(&config->proxy, nextarg);
879 GetStr(&config->proxy, nextarg);
884 GetStr(&config->proxy, nextarg);
897 err = str2unum(&config->req_retry, nextarg);
905 err = str2unum(&config->retry_delay, nextarg);
910 err = str2unum(&config->retry_maxtime, nextarg);
923 GetStr(&config->ftp_account, nextarg);
938 config->ftp_filemethod = ftpfilemethod(config, nextarg);
943 char *p = nextarg;
954 err = str2unum(&config->localport, nextarg);
970 GetStr(&config->ftp_alternative_to_user, nextarg);
992 config->ftp_ssl_ccc_mode = ftpcccmethod(config, nextarg);
1000 GetStr(&global->libcurl, nextarg);
1013 err = str2unum(&config->alivetime, nextarg);
1025 GetStr(&config->noproxy, nextarg);
1032 GetStr(&config->proxy, nextarg);
1036 err = str2unum(&config->tftp_blksize, nextarg);
1041 GetStr(&config->mail_from, nextarg);
1045 err = add2list(&config->mail_rcpt, nextarg);
1054 if(proto2num(config, &config->proto, nextarg))
1059 if(proto2num(config, &config->proto_redir, nextarg))
1063 err = add2list(&config->resolve, nextarg);
1068 config->gssapi_delegation = delegation(config, nextarg);
1071 GetStr(&config->mail_auth, nextarg);
1109 GetStr(&config->unix_socket_path, nextarg);
1115 GetStr(&config->proxy_service_name, nextarg);
1118 GetStr(&config->service_name, nextarg);
1121 GetStr(&config->proto_default, nextarg);
1127 err = str2udouble(&config->expect100timeout, nextarg, LONG_MAX/1000);
1135 err = add2list(&config->connect_to, nextarg);
1141 GetStr(&config->unix_socket_path, nextarg);
1144 err = str2tls_max(&config->ssl_version_max, nextarg);
1155 err = str2unum(&config->happy_eyeballs_timeout_ms, nextarg);
1217 GetStr(&config->cipher13_list, nextarg);
1220 GetStr(&config->proxy_cipher13_list, nextarg);
1246 GetStr(&config->useragent, nextarg);
1251 GetStr(&config->altsvc, nextarg);
1254 if(nextarg[0] == '@') {
1255 nextarg++;
1257 else if(strchr(nextarg, '=')) {
1259 GetStr(&config->cookie, nextarg);
1263 GetStr(&config->cookiefile, nextarg);
1272 GetStr(&config->cookiejar, nextarg);
1276 if(strcmp(nextarg, "-")) {
1277 err = str2offset(&config->resume_from, nextarg);
1303 const char *p = strchr(nextarg, '=');
1308 p = strchr(nextarg, '@');
1310 nlen = p - nextarg; /* length of the name part */
1316 p = nextarg;
1329 "an empty POST.\n", nextarg);
1366 msnprintf(n, outlen, "%.*s=%s", nlen, nextarg, enc);
1380 else if('@' == *nextarg && !raw_mode) {
1383 nextarg++; /* pass the @ */
1385 if(!strcmp("-", nextarg)) {
1391 file = fopen(nextarg, "rb");
1394 "an empty POST.\n", nextarg);
1420 GetStr(&postdata, nextarg);
1473 GetStr(&config->headerfile, nextarg);
1477 char *ptr = strstr(nextarg, ";auto");
1486 GetStr(&config->referer, nextarg);
1492 GetFileAndPassword(nextarg, &config->cert, &config->key_passwd);
1495 GetStr(&config->cacert, nextarg);
1498 GetStr(&config->cert_type, nextarg);
1501 GetStr(&config->key, nextarg);
1504 GetStr(&config->key_type, nextarg);
1507 GetStr(&config->key_passwd, nextarg);
1508 cleanarg(nextarg);
1511 GetStr(&config->engine, nextarg);
1516 GetStr(&config->capath, nextarg);
1519 GetStr(&config->pubkey, nextarg);
1522 GetStr(&config->hostpubmd5, nextarg);
1527 GetStr(&config->crlfile, nextarg);
1531 GetStr(&config->tls_username, nextarg);
1537 GetStr(&config->tls_password, nextarg);
1543 GetStr(&config->tls_authtype, nextarg);
1556 GetStr(&config->login_options, nextarg);
1560 GetStr(&config->pinnedpubkey, nextarg);
1564 GetStr(&config->proxy_pinnedpubkey, nextarg);
1586 GetStr(&config->proxy_tls_username, nextarg);
1593 GetStr(&config->proxy_tls_password, nextarg);
1600 GetStr(&config->proxy_tls_authtype, nextarg);
1609 GetFileAndPassword(nextarg, &config->proxy_cert,
1614 GetStr(&config->proxy_cert_type, nextarg);
1618 GetStr(&config->proxy_key, nextarg);
1622 GetStr(&config->proxy_key_type, nextarg);
1626 GetStr(&config->proxy_key_passwd, nextarg);
1627 cleanarg(nextarg);
1631 GetStr(&config->proxy_cipher_list, nextarg);
1635 GetStr(&config->proxy_crlfile, nextarg);
1644 GetStr(&config->login_options, nextarg);
1648 GetStr(&config->proxy_cacert, nextarg);
1652 GetStr(&config->proxy_capath, nextarg);
1700 nextarg,
1715 GetStr(&config->request_target, nextarg);
1729 if(nextarg[0] == '@') {
1733 bool use_stdin = !strcmp(&nextarg[1], "-");
1734 FILE *file = use_stdin?stdin:fopen(&nextarg[1], FOPEN_READTEXT);
1736 warnf(global, "Failed to open %s!\n", &nextarg[1]);
1762 err = add2list(&config->proxyheaders, nextarg);
1764 err = add2list(&config->headers, nextarg);
1796 if(parseconfig(nextarg, global))
1798 nextarg);
1815 err = str2udouble(&config->timeout, nextarg, LONG_MAX/1000);
1836 GetStr(&config->netrc_file, nextarg);
1886 GetStr(&url->outfile, nextarg);
1905 GetStr(&config->ftpport, nextarg);
1917 switch(nextarg[0]) {
1920 nextarg++;
1921 err = add2list(&config->postquote, nextarg);
1925 nextarg++;
1926 err = add2list(&config->prequote, nextarg);
1929 err = add2list(&config->quote, nextarg);
1940 if(ISDIGIT(*nextarg) && !strchr(nextarg, '-')) {
1943 if(curlx_strtoofft(nextarg, NULL, 10, &off)) {
1959 tmp_range = nextarg;
1971 GetStr(&config->range, nextarg);
1996 err = add2list(&config->telnet_options, nextarg);
2026 if(!*nextarg)
2030 GetStr(&url->infile, nextarg);
2036 GetStr(&config->userpwd, nextarg);
2037 cleanarg(nextarg);
2041 GetStr(&config->proxyuserpwd, nextarg);
2042 cleanarg(nextarg);
2067 if('@' == *nextarg) {
2072 nextarg++; /* pass the @ */
2073 if(!strcmp("-", nextarg)) {
2078 fname = nextarg;
2079 file = fopen(nextarg, FOPEN_READTEXT);
2091 GetStr(&config->writeout, nextarg);
2096 GetStr(&config->preproxy, nextarg);
2100 GetStr(&config->proxy, nextarg);
2107 GetStr(&config->customrequest, nextarg);
2111 err = str2unum(&config->low_speed_time, nextarg);
2119 err = str2unum(&config->low_speed_limit, nextarg);
2126 switch(*nextarg) {
2128 nextarg++;
2137 nextarg++;
2142 nextarg++;
2146 config->condtime = (curl_off_t)curl_getdate(nextarg, &now);
2149 curl_off_t filetime = getfiletime(nextarg, config->global->errors);
2195 char *nextarg = (i < (argc - 1)) ? argv[i + 1] : NULL;
2197 result = getparameter(flag, nextarg, &passarg, config, operation);