Lines Matching refs:config
510 struct OperationConfig *config) in getparameter() argument
622 GetStr(&config->dns_ipv4_addr, nextarg); in getparameter()
626 GetStr(&config->dns_ipv6_addr, nextarg); in getparameter()
629 GetStr(&config->random_file, nextarg); in getparameter()
632 GetStr(&config->egd_file, nextarg); in getparameter()
635 GetStr(&config->oauth_bearer, nextarg); in getparameter()
636 config->authtype |= CURLAUTH_BEARER; in getparameter()
639 err = str2udouble(&config->connecttimeout, nextarg, in getparameter()
645 GetStr(&config->doh_url, nextarg); in getparameter()
648 GetStr(&config->cipher_list, nextarg); in getparameter()
652 GetStr(&config->dns_interface, nextarg); in getparameter()
655 config->disable_epsv = toggle; in getparameter()
658 config->disallow_username_in_url = toggle; in getparameter()
661 config->disable_epsv = (!toggle)?TRUE:FALSE; in getparameter()
665 GetStr(&config->dns_servers, nextarg); in getparameter()
674 config->nonpn = (!toggle)?TRUE:FALSE; in getparameter()
684 config->noalpn = (!toggle)?TRUE:FALSE; in getparameter()
693 config->recvpersecond = value; in getparameter()
694 config->sendpersecond = value; in getparameter()
703 config->encoding = toggle; in getparameter()
707 config->tr_encoding = toggle; in getparameter()
712 config->authtype |= CURLAUTH_DIGEST; in getparameter()
714 config->authtype &= ~CURLAUTH_DIGEST; in getparameter()
720 config->authtype |= CURLAUTH_NEGOTIATE; in getparameter()
725 config->authtype &= ~CURLAUTH_NEGOTIATE; in getparameter()
731 config->authtype |= CURLAUTH_NTLM; in getparameter()
736 config->authtype &= ~CURLAUTH_NTLM; in getparameter()
742 config->authtype |= CURLAUTH_NTLM_WB; in getparameter()
747 config->authtype &= ~CURLAUTH_NTLM_WB; in getparameter()
752 config->authtype |= CURLAUTH_BASIC; in getparameter()
754 config->authtype &= ~CURLAUTH_BASIC; in getparameter()
759 config->authtype = CURLAUTH_ANY; in getparameter()
769 config->ftp_create_dirs = toggle; in getparameter()
773 config->create_dirs = toggle; in getparameter()
779 err = str2num(&config->maxredirs, nextarg); in getparameter()
782 if(config->maxredirs < -1) in getparameter()
788 config->proxyntlm = toggle; in getparameter()
795 config->crlf = toggle; in getparameter()
815 GetStr(&config->iface, nextarg); in getparameter()
820 GetStr(&config->krblevel, nextarg); in getparameter()
825 config->haproxy_protocol = toggle; in getparameter()
835 config->max_filesize = value; in getparameter()
839 config->disable_eprt = toggle; in getparameter()
842 config->disable_eprt = (!toggle)?TRUE:FALSE; in getparameter()
845 config->xattr = toggle; in getparameter()
851 if(!config->url_get) in getparameter()
852 config->url_get = config->url_list; in getparameter()
854 if(config->url_get) { in getparameter()
857 while(config->url_get && (config->url_get->flags & GETOUT_URL)) in getparameter()
858 config->url_get = config->url_get->next; in getparameter()
863 if(config->url_get) in getparameter()
865 url = config->url_get; in getparameter()
868 config->url_get = url = new_getout(config); in getparameter()
884 config->ftp_ssl = toggle; in getparameter()
887 Curl_safefree(config->ftpport); in getparameter()
891 GetStr(&config->proxy, nextarg); in getparameter()
892 config->proxyver = CURLPROXY_SOCKS5; in getparameter()
895 GetStr(&config->proxy, nextarg); in getparameter()
896 config->proxyver = CURLPROXY_SOCKS4; in getparameter()
899 GetStr(&config->proxy, nextarg); in getparameter()
900 config->proxyver = CURLPROXY_SOCKS4A; in getparameter()
904 GetStr(&config->proxy, nextarg); in getparameter()
905 config->proxyver = CURLPROXY_SOCKS5_HOSTNAME; in getparameter()
908 config->tcp_nodelay = toggle; in getparameter()
911 config->proxydigest = toggle; in getparameter()
914 config->proxybasic = toggle; in getparameter()
917 err = str2unum(&config->req_retry, nextarg); in getparameter()
922 config->retry_connrefused = toggle; in getparameter()
925 err = str2unummax(&config->retry_delay, nextarg, LONG_MAX/1000); in getparameter()
930 err = str2unummax(&config->retry_maxtime, nextarg, LONG_MAX/1000); in getparameter()
935 config->retry_all_errors = toggle; in getparameter()
940 config->proxynegotiate = toggle; in getparameter()
946 GetStr(&config->ftp_account, nextarg); in getparameter()
949 config->proxyanyauth = toggle; in getparameter()
955 config->ignorecl = toggle; in getparameter()
958 config->ftp_skip_ip = toggle; in getparameter()
961 config->ftp_filemethod = ftpfilemethod(config, nextarg); in getparameter()
977 err = str2unum(&config->localport, nextarg); in getparameter()
978 if(err || (config->localport > 65535)) in getparameter()
981 config->localportrange = 1; /* default number of ports to try */ in getparameter()
983 err = str2unum(&config->localportrange, lrange); in getparameter()
984 if(err || (config->localportrange > 65535)) in getparameter()
986 config->localportrange -= (config->localport-1); in getparameter()
987 if(config->localportrange < 1) in getparameter()
993 GetStr(&config->ftp_alternative_to_user, nextarg); in getparameter()
998 config->ftp_ssl_reqd = toggle; in getparameter()
1001 config->disable_sessionid = (!toggle)?TRUE:FALSE; in getparameter()
1006 config->ftp_ssl_control = toggle; in getparameter()
1009 config->ftp_ssl_ccc = toggle; in getparameter()
1010 if(!config->ftp_ssl_ccc_mode) in getparameter()
1011 config->ftp_ssl_ccc_mode = CURLFTPSSL_CCC_PASSIVE; in getparameter()
1014 config->ftp_ssl_ccc = TRUE; in getparameter()
1015 config->ftp_ssl_ccc_mode = ftpcccmethod(config, nextarg); in getparameter()
1027 config->raw = toggle; in getparameter()
1030 config->post301 = toggle; in getparameter()
1033 config->nokeepalive = (!toggle)?TRUE:FALSE; in getparameter()
1036 err = str2unum(&config->alivetime, nextarg); in getparameter()
1041 config->post302 = toggle; in getparameter()
1044 config->post303 = toggle; in getparameter()
1048 GetStr(&config->noproxy, nextarg); in getparameter()
1051 config->socks5_gssapi_nec = toggle; in getparameter()
1055 GetStr(&config->proxy, nextarg); in getparameter()
1056 config->proxyver = CURLPROXY_HTTP_1_0; in getparameter()
1059 err = str2unum(&config->tftp_blksize, nextarg); in getparameter()
1064 GetStr(&config->mail_from, nextarg); in getparameter()
1068 err = add2list(&config->mail_rcpt, nextarg); in getparameter()
1073 config->ftp_pret = toggle; in getparameter()
1076 config->proto_present = TRUE; in getparameter()
1077 if(proto2num(config, &config->proto, nextarg)) in getparameter()
1081 config->proto_redir_present = TRUE; in getparameter()
1082 if(proto2num(config, &config->proto_redir, nextarg)) in getparameter()
1086 err = add2list(&config->resolve, nextarg); in getparameter()
1091 config->gssapi_delegation = delegation(config, nextarg); in getparameter()
1094 GetStr(&config->mail_auth, nextarg); in getparameter()
1113 config->use_metalink = toggle; in getparameter()
1121 GetStr(&config->sasl_authzid, nextarg); in getparameter()
1124 config->sasl_ir = toggle; in getparameter()
1134 config->abstract_unix_socket = FALSE; in getparameter()
1135 GetStr(&config->unix_socket_path, nextarg); in getparameter()
1138 config->path_as_is = toggle; in getparameter()
1141 GetStr(&config->proxy_service_name, nextarg); in getparameter()
1144 GetStr(&config->service_name, nextarg); in getparameter()
1147 GetStr(&config->proto_default, nextarg); in getparameter()
1148 err = check_protocol(config->proto_default); in getparameter()
1153 err = str2udouble(&config->expect100timeout, nextarg, LONG_MAX/1000); in getparameter()
1158 config->tftp_no_options = toggle; in getparameter()
1161 err = add2list(&config->connect_to, nextarg); in getparameter()
1166 config->abstract_unix_socket = TRUE; in getparameter()
1167 GetStr(&config->unix_socket_path, nextarg); in getparameter()
1170 err = str2tls_max(&config->ssl_version_max, nextarg); in getparameter()
1175 config->suppress_connect_headers = toggle; in getparameter()
1178 config->ssh_compression = toggle; in getparameter()
1181 err = str2unum(&config->happy_eyeballs_timeout_ms, nextarg); in getparameter()
1205 config->httpversion = CURL_HTTP_VERSION_1_0; in getparameter()
1209 config->httpversion = CURL_HTTP_VERSION_1_1; in getparameter()
1213 config->httpversion = CURL_HTTP_VERSION_2_0; in getparameter()
1217 config->httpversion = CURL_HTTP_VERSION_2_PRIOR_KNOWLEDGE; in getparameter()
1222 config->httpversion = CURL_HTTP_VERSION_3; in getparameter()
1228 config->http09_allowed = toggle; in getparameter()
1236 config->ssl_version = CURL_SSLVERSION_TLSv1; in getparameter()
1240 config->ssl_version = CURL_SSLVERSION_TLSv1_0; in getparameter()
1244 config->ssl_version = CURL_SSLVERSION_TLSv1_1; in getparameter()
1248 config->ssl_version = CURL_SSLVERSION_TLSv1_2; in getparameter()
1252 config->ssl_version = CURL_SSLVERSION_TLSv1_3; in getparameter()
1255 GetStr(&config->cipher13_list, nextarg); in getparameter()
1258 GetStr(&config->proxy_cipher13_list, nextarg); in getparameter()
1264 config->ssl_version = CURL_SSLVERSION_SSLv2; in getparameter()
1268 config->ssl_version = CURL_SSLVERSION_SSLv3; in getparameter()
1272 config->ip_version = CURL_IPRESOLVE_V4; in getparameter()
1276 config->ip_version = CURL_IPRESOLVE_V6; in getparameter()
1280 config->ftp_append = toggle; in getparameter()
1284 GetStr(&config->useragent, nextarg); in getparameter()
1290 GetStr(&config->altsvc, nextarg); in getparameter()
1300 GetStr(&config->cookie, nextarg); in getparameter()
1304 GetStr(&config->cookiefile, nextarg); in getparameter()
1309 config->use_ascii = toggle; in getparameter()
1313 GetStr(&config->cookiejar, nextarg); in getparameter()
1318 err = str2offset(&config->resume_from, nextarg); in getparameter()
1321 config->resume_from_current = FALSE; in getparameter()
1324 config->resume_from_current = TRUE; in getparameter()
1325 config->resume_from = 0; in getparameter()
1327 config->use_resume = TRUE; in getparameter()
1476 if(config->postfields) { in getparameter()
1479 char *oldpost = config->postfields; in getparameter()
1480 curl_off_t oldlen = config->postfieldsize; in getparameter()
1482 config->postfields = malloc((size_t)newlen); in getparameter()
1483 if(!config->postfields) { in getparameter()
1488 memcpy(config->postfields, oldpost, (size_t)oldlen); in getparameter()
1490 config->postfields[oldlen] = '\x26'; in getparameter()
1491 memcpy(&config->postfields[oldlen + 1], postdata, size); in getparameter()
1492 config->postfields[oldlen + 1 + size] = '\0'; in getparameter()
1495 config->postfieldsize += size + 1; in getparameter()
1498 config->postfields = postdata; in getparameter()
1499 config->postfieldsize = curlx_uztoso(size); in getparameter()
1514 GetStr(&config->headerfile, nextarg); in getparameter()
1522 config->autoreferer = TRUE; in getparameter()
1526 config->autoreferer = FALSE; in getparameter()
1527 GetStr(&config->referer, nextarg); in getparameter()
1533 GetFileAndPassword(nextarg, &config->cert, &config->key_passwd); in getparameter()
1536 GetStr(&config->cacert, nextarg); in getparameter()
1539 GetStr(&config->cert_type, nextarg); in getparameter()
1542 GetStr(&config->key, nextarg); in getparameter()
1545 GetStr(&config->key_type, nextarg); in getparameter()
1548 GetStr(&config->key_passwd, nextarg); in getparameter()
1552 GetStr(&config->engine, nextarg); in getparameter()
1553 if(config->engine && curl_strequal(config->engine, "list")) in getparameter()
1557 GetStr(&config->capath, nextarg); in getparameter()
1560 GetStr(&config->pubkey, nextarg); in getparameter()
1563 GetStr(&config->hostpubmd5, nextarg); in getparameter()
1564 if(!config->hostpubmd5 || strlen(config->hostpubmd5) != 32) in getparameter()
1568 GetStr(&config->crlfile, nextarg); in getparameter()
1572 GetStr(&config->tls_username, nextarg); in getparameter()
1578 GetStr(&config->tls_password, nextarg); in getparameter()
1584 GetStr(&config->tls_authtype, nextarg); in getparameter()
1585 if(!curl_strequal(config->tls_authtype, "SRP")) in getparameter()
1593 config->ssl_allow_beast = toggle; in getparameter()
1597 GetStr(&config->pinnedpubkey, nextarg); in getparameter()
1601 GetStr(&config->proxy_pinnedpubkey, nextarg); in getparameter()
1605 config->verifystatus = TRUE; in getparameter()
1609 config->falsestart = TRUE; in getparameter()
1614 config->ssl_no_revoke = TRUE; in getparameter()
1619 config->ssl_revoke_best_effort = TRUE; in getparameter()
1623 config->tcp_fastopen = TRUE; in getparameter()
1628 GetStr(&config->proxy_tls_username, nextarg); in getparameter()
1635 GetStr(&config->proxy_tls_password, nextarg); in getparameter()
1642 GetStr(&config->proxy_tls_authtype, nextarg); in getparameter()
1643 if(!curl_strequal(config->proxy_tls_authtype, "SRP")) in getparameter()
1651 GetFileAndPassword(nextarg, &config->proxy_cert, in getparameter()
1652 &config->proxy_key_passwd); in getparameter()
1656 GetStr(&config->proxy_cert_type, nextarg); in getparameter()
1660 GetStr(&config->proxy_key, nextarg); in getparameter()
1664 GetStr(&config->proxy_key_type, nextarg); in getparameter()
1668 GetStr(&config->proxy_key_passwd, nextarg); in getparameter()
1673 GetStr(&config->proxy_cipher_list, nextarg); in getparameter()
1677 GetStr(&config->proxy_crlfile, nextarg); in getparameter()
1682 config->proxy_ssl_allow_beast = toggle; in getparameter()
1686 GetStr(&config->login_options, nextarg); in getparameter()
1690 GetStr(&config->proxy_cacert, nextarg); in getparameter()
1694 GetStr(&config->proxy_capath, nextarg); in getparameter()
1698 config->proxy_insecure_ok = toggle; in getparameter()
1703 config->proxy_ssl_version = CURL_SSLVERSION_TLSv1; in getparameter()
1709 config->socks5_auth |= CURLAUTH_BASIC; in getparameter()
1711 config->socks5_auth &= ~CURLAUTH_BASIC; in getparameter()
1717 config->socks5_auth |= CURLAUTH_GSSAPI; in getparameter()
1719 config->socks5_auth &= ~CURLAUTH_GSSAPI; in getparameter()
1723 GetStr(&config->etag_save_file, nextarg); in getparameter()
1727 GetStr(&config->etag_compare_file, nextarg); in getparameter()
1731 GetStr(&config->ssl_ec_curves, nextarg); in getparameter()
1747 config->mail_rcpt_allowfails = toggle; in getparameter()
1750 config->failonerror = toggle; in getparameter()
1756 if(formparse(config, in getparameter()
1758 &config->mimeroot, in getparameter()
1759 &config->mimecurrent, in getparameter()
1762 if(SetHTTPrequest(config, HTTPREQ_MIMEPOST, &config->httpreq)) in getparameter()
1767 config->globoff = toggle; in getparameter()
1772 GetStr(&config->request_target, nextarg); in getparameter()
1775 config->use_httpget = TRUE; in getparameter()
1807 err = add2list(&config->proxyheaders, h); in getparameter()
1809 err = add2list(&config->headers, h); in getparameter()
1824 err = add2list(&config->proxyheaders, nextarg); in getparameter()
1826 err = add2list(&config->headers, nextarg); in getparameter()
1832 if(config->content_disposition) { in getparameter()
1837 config->show_headers = toggle; /* show the headers as well in the in getparameter()
1841 config->cookiesession = toggle; in getparameter()
1844 config->no_body = toggle; in getparameter()
1845 config->show_headers = toggle; in getparameter()
1846 if(SetHTTPrequest(config, in getparameter()
1847 (config->no_body)?HTTPREQ_HEAD:HTTPREQ_GET, in getparameter()
1848 &config->httpreq)) in getparameter()
1852 if(config->show_headers) { in getparameter()
1857 config->content_disposition = toggle; in getparameter()
1860 config->insecure_ok = toggle; in getparameter()
1868 config->dirlistonly = toggle; /* only list the names of the FTP dir */ in getparameter()
1871 config->followlocation = toggle; /* Follow Location: HTTP headers */ in getparameter()
1876 config->unrestricted_auth = toggle; in getparameter()
1882 err = str2udouble(&config->timeout, nextarg, LONG_MAX/1000); in getparameter()
1900 config->netrc_opt = toggle; in getparameter()
1903 GetStr(&config->netrc_file, nextarg); in getparameter()
1908 config->netrc = toggle; in getparameter()
1916 config->nobuffer = (!toggle)?TRUE:FALSE; in getparameter()
1918 config->nobuffer = toggle; in getparameter()
1922 config->default_node_flags = toggle?GETOUT_USEREMOTE:0; in getparameter()
1926 GetStr(&config->output_dir, nextarg); in getparameter()
1934 if(!config->url_out) in getparameter()
1935 config->url_out = config->url_list; in getparameter()
1936 if(config->url_out) { in getparameter()
1939 while(config->url_out && (config->url_out->flags & GETOUT_OUTFILE)) in getparameter()
1940 config->url_out = config->url_out->next; in getparameter()
1945 if(config->url_out) in getparameter()
1947 url = config->url_out; in getparameter()
1950 config->url_out = url = new_getout(config); in getparameter()
1976 GetStr(&config->ftpport, nextarg); in getparameter()
1980 config->proxytunnel = toggle; in getparameter()
1992 err = add2list(&config->postquote, nextarg); in getparameter()
1997 err = add2list(&config->prequote, nextarg); in getparameter()
2000 err = add2list(&config->quote, nextarg); in getparameter()
2022 Curl_safefree(config->range); in getparameter()
2023 config->range = strdup(buffer); in getparameter()
2024 if(!config->range) in getparameter()
2041 GetStr(&config->range, nextarg); in getparameter()
2046 config->remote_time = toggle; in getparameter()
2066 err = add2list(&config->telnet_options, nextarg); in getparameter()
2074 if(!config->url_ul) in getparameter()
2075 config->url_ul = config->url_list; in getparameter()
2076 if(config->url_ul) { in getparameter()
2079 while(config->url_ul && (config->url_ul->flags & GETOUT_UPLOAD)) in getparameter()
2080 config->url_ul = config->url_ul->next; in getparameter()
2085 if(config->url_ul) in getparameter()
2087 url = config->url_ul; in getparameter()
2090 config->url_ul = url = new_getout(config); in getparameter()
2106 GetStr(&config->userpwd, nextarg); in getparameter()
2111 GetStr(&config->proxyuserpwd, nextarg); in getparameter()
2151 Curl_safefree(config->writeout); in getparameter()
2152 err = file2string(&config->writeout, file); in getparameter()
2157 if(!config->writeout) in getparameter()
2161 GetStr(&config->writeout, nextarg); in getparameter()
2166 GetStr(&config->preproxy, nextarg); in getparameter()
2170 GetStr(&config->proxy, nextarg); in getparameter()
2171 config->proxyver = CURLPROXY_HTTP; in getparameter()
2177 GetStr(&config->customrequest, nextarg); in getparameter()
2181 err = str2unum(&config->low_speed_time, nextarg); in getparameter()
2184 if(!config->low_speed_limit) in getparameter()
2185 config->low_speed_limit = 1; in getparameter()
2189 err = str2unum(&config->low_speed_limit, nextarg); in getparameter()
2192 if(!config->low_speed_time) in getparameter()
2193 config->low_speed_time = 30; in getparameter()
2220 config->timecond = CURL_TIMECOND_IFMODSINCE; in getparameter()
2224 config->timecond = CURL_TIMECOND_IFUNMODSINCE; in getparameter()
2229 config->timecond = CURL_TIMECOND_LASTMOD; in getparameter()
2234 config->condtime = (curl_off_t)curl_getdate(nextarg, &now); in getparameter()
2235 if(-1 == config->condtime) { in getparameter()
2237 curl_off_t filetime = getfiletime(nextarg, config->global->errors); in getparameter()
2240 config->condtime = filetime; in getparameter()
2244 config->timecond = CURL_TIMECOND_NONE; in getparameter()
2269 struct OperationConfig *config = global->first; in parse_args() local
2286 result = getparameter(orig_opt, nextarg, &passarg, global, config); in parse_args()
2288 config = global->last; in parse_args()
2294 if(config->url_list && config->url_list->url) { in parse_args()
2296 config->next = malloc(sizeof(struct OperationConfig)); in parse_args()
2297 if(config->next) { in parse_args()
2299 config_init(config->next); in parse_args()
2302 config->next->global = global; in parse_args()
2305 global->last = config->next; in parse_args()
2308 config->next->prev = config; in parse_args()
2309 config = config->next; in parse_args()
2324 config); in parse_args()