Lines Matching refs:config
107 struct OperationConfig *config,
332 struct OperationConfig *config = per->config; /* for the macro below */ in pre_transfer() local
334 (void)config; in pre_transfer()
364 void single_transfer_cleanup(struct OperationConfig *config) in single_transfer_cleanup() argument
366 if(config) { in single_transfer_cleanup()
367 struct State *state = &config->state; in single_transfer_cleanup()
395 struct OperationConfig *config = per->config; in post_per_transfer() local
398 if(!curl || !config) in post_per_transfer()
415 if(!config->synthetic_error && result && in post_per_transfer()
423 else if(config->failwithbody) { in post_per_transfer()
436 if(!result && config->xattr && outs->fopened && outs->stream) { in post_per_transfer()
439 warnf(config->global, "Error setting extended attributes on '%s': %s", in post_per_transfer()
451 if(!cond_unmet && !tool_create_output_file(outs, config)) in post_per_transfer()
474 (!config->retry_maxtime || in post_per_transfer()
476 config->retry_maxtime*1000L)) ) { in post_per_transfer()
493 else if(config->retry_connrefused && in post_per_transfer()
501 ((config->failonerror || config->failwithbody) && in post_per_transfer()
551 if(result && !retry && config->retry_all_errors) in post_per_transfer()
579 if(config->retry_maxtime) { in post_per_transfer()
583 (seconds + retry_after > config->retry_maxtime)) { in post_per_transfer()
584 warnf(config->global, "The Retry-After: time would " in post_per_transfer()
592 warnf(config->global, "Problem %s. " in post_per_transfer()
598 if(!config->retry_delay) { in post_per_transfer()
606 notef(config->global, in post_per_transfer()
615 errorf(config->global, "Failed to truncate file"); in post_per_transfer()
629 errorf(config->global, "Failed seeking to end of file"); in post_per_transfer()
653 errorf(config->global, "curl: (%d) Failed writing body", result); in post_per_transfer()
655 if(result && config->rm_partial) { in post_per_transfer()
664 if(!result && config->remote_time && outs->s_isreg && outs->filename) { in post_per_transfer()
672 if(config->writeout) in post_per_transfer()
673 ourWriteOut(config, per, result); in post_per_transfer()
783 struct OperationConfig *config) in ipfs_url_rewrite() argument
810 if(config->ipfs_gateway) { in ipfs_url_rewrite()
811 if(curl_url_set(ipfsurl, CURLUPART_URL, config->ipfs_gateway, in ipfs_url_rewrite()
814 gateway = strdup(config->ipfs_gateway); in ipfs_url_rewrite()
895 struct OperationConfig *config, in url_proto() argument
913 result = ipfs_url_rewrite(uh, schemep, url, config); in url_proto()
937 struct OperationConfig *config, in single_transfer() argument
946 struct State *state = &config->state; in single_transfer()
951 if(config->postfields) { in single_transfer()
952 if(config->use_httpget) { in single_transfer()
955 httpgetfields = state->httpgetfields = strdup(config->postfields); in single_transfer()
956 Curl_safefree(config->postfields); in single_transfer()
961 else if(SetHTTPrequest(config, in single_transfer()
962 (config->no_body?HTTPREQ_HEAD:HTTPREQ_GET), in single_transfer()
963 &config->httpreq)) { in single_transfer()
969 if(SetHTTPrequest(config, HTTPREQ_SIMPLEPOST, &config->httpreq)) in single_transfer()
973 single_transfer_cleanup(config); in single_transfer()
979 state->urlnode = config->url_list; in single_transfer()
983 while(config->state.urlnode) { in single_transfer()
987 urlnode = config->state.urlnode; in single_transfer()
997 config->state.urlnode = urlnode->next; in single_transfer()
1001 warnf(config->global, "Got more output options than URLs"); in single_transfer()
1019 if(!config->globoff && infiles && !inglob) { in single_transfer()
1026 config->state.inglob = inglob; in single_transfer()
1054 if(!config->globoff) { in single_transfer()
1086 if(config->etag_compare_file) { in single_transfer()
1092 FILE *file = fopen(config->etag_compare_file, FOPEN_READTEXT); in single_transfer()
1093 if(!file && !config->etag_save_file) { in single_transfer()
1095 "Failed to open %s", config->etag_compare_file); in single_transfer()
1118 pe = add2list(&config->headers, header); in single_transfer()
1129 if(config->etag_save_file) { in single_transfer()
1131 if(strcmp(config->etag_save_file, "-")) { in single_transfer()
1132 FILE *newfile = fopen(config->etag_save_file, "wb"); in single_transfer()
1135 "Skip this transfer", config->etag_save_file); in single_transfer()
1141 etag_save->filename = config->etag_save_file; in single_transfer()
1172 if(SetHTTPrequest(config, HTTPREQ_PUT, &config->httpreq)) { in single_transfer()
1180 per->config = config; in single_transfer()
1189 if(config->headerfile) { in single_transfer()
1191 if(strcmp(config->headerfile, "-")) { in single_transfer()
1203 if(!per->prev || per->prev->config != config) { in single_transfer()
1204 newfile = fopen(config->headerfile, "wb"); in single_transfer()
1208 newfile = fopen(config->headerfile, "ab"); in single_transfer()
1211 errorf(global, "Failed to open %s", config->headerfile); in single_transfer()
1216 heads->filename = config->headerfile; in single_transfer()
1280 if(!*per->outfile && !config->content_disposition) { in single_transfer()
1303 if(config->output_dir && *config->output_dir) { in single_transfer()
1304 char *d = aprintf("%s/%s", config->output_dir, per->outfile); in single_transfer()
1315 if(config->create_dirs) { in single_transfer()
1323 && config->content_disposition) { in single_transfer()
1328 if(config->resume_from_current) { in single_transfer()
1335 config->resume_from = fileinfo.st_size; in single_transfer()
1338 config->resume_from = 0; in single_transfer()
1341 if(config->resume_from) { in single_transfer()
1358 outs->init = config->resume_from; in single_transfer()
1382 if(config->authtype & (1UL << bitcheck++)) { in single_transfer()
1395 if(config->proxyanyauth || (authbits>1)) { in single_transfer()
1413 if(per->uploadfile && config->resume_from_current) in single_transfer()
1414 config->resume_from = -1; /* -1 will then force get-it-yourself */ in single_transfer()
1428 if(httpgetfields || config->query) { in single_transfer()
1429 char *q = httpgetfields ? httpgetfields : config->query; in single_transfer()
1439 config->synthetic_error = TRUE; in single_transfer()
1461 !config->use_ascii) { in single_transfer()
1468 config->terminal_binary_ok = in single_transfer()
1477 result = url_proto(&per->this_url, config, &use_proto); in single_transfer()
1490 if(!config->tcp_nodelay) in single_transfer()
1493 if(config->tcp_fastopen) in single_transfer()
1529 if(config->recvpersecond && in single_transfer()
1530 (config->recvpersecond < BUFFER_SIZE)) in single_transfer()
1532 my_setopt(curl, CURLOPT_BUFFERSIZE, (long)config->recvpersecond); in single_transfer()
1540 if(config->no_body) in single_transfer()
1543 if(config->oauth_bearer) in single_transfer()
1544 my_setopt_str(curl, CURLOPT_XOAUTH2_BEARER, config->oauth_bearer); in single_transfer()
1546 my_setopt_str(curl, CURLOPT_PROXY, config->proxy); in single_transfer()
1548 if(config->proxy && result) { in single_transfer()
1550 config->synthetic_error = TRUE; in single_transfer()
1556 if(config->proxy) in single_transfer()
1557 my_setopt_enum(curl, CURLOPT_PROXYTYPE, config->proxyver); in single_transfer()
1559 my_setopt_str(curl, CURLOPT_PROXYUSERPWD, config->proxyuserpwd); in single_transfer()
1562 my_setopt(curl, CURLOPT_HTTPPROXYTUNNEL, config->proxytunnel?1L:0L); in single_transfer()
1565 if(config->preproxy) in single_transfer()
1566 my_setopt_str(curl, CURLOPT_PRE_PROXY, config->preproxy); in single_transfer()
1569 if(config->proxyanyauth) in single_transfer()
1572 else if(config->proxynegotiate) in single_transfer()
1575 else if(config->proxyntlm) in single_transfer()
1578 else if(config->proxydigest) in single_transfer()
1581 else if(config->proxybasic) in single_transfer()
1586 my_setopt_str(curl, CURLOPT_NOPROXY, config->noproxy); in single_transfer()
1589 config->suppress_connect_headers?1L:0L); in single_transfer()
1591 my_setopt(curl, CURLOPT_FAILONERROR, config->failonerror?1L:0L); in single_transfer()
1592 my_setopt(curl, CURLOPT_REQUEST_TARGET, config->request_target); in single_transfer()
1594 my_setopt(curl, CURLOPT_DIRLISTONLY, config->dirlistonly?1L:0L); in single_transfer()
1595 my_setopt(curl, CURLOPT_APPEND, config->ftp_append?1L:0L); in single_transfer()
1597 if(config->netrc_opt) in single_transfer()
1599 else if(config->netrc || config->netrc_file) in single_transfer()
1604 if(config->netrc_file) in single_transfer()
1605 my_setopt_str(curl, CURLOPT_NETRC_FILE, config->netrc_file); in single_transfer()
1607 my_setopt(curl, CURLOPT_TRANSFERTEXT, config->use_ascii?1L:0L); in single_transfer()
1608 if(config->login_options) in single_transfer()
1609 my_setopt_str(curl, CURLOPT_LOGIN_OPTIONS, config->login_options); in single_transfer()
1610 my_setopt_str(curl, CURLOPT_USERPWD, config->userpwd); in single_transfer()
1611 my_setopt_str(curl, CURLOPT_RANGE, config->range); in single_transfer()
1616 my_setopt(curl, CURLOPT_TIMEOUT_MS, config->timeout_ms); in single_transfer()
1618 switch(config->httpreq) { in single_transfer()
1620 if(config->resume_from) { in single_transfer()
1626 config->postfields); in single_transfer()
1628 config->postfieldsize); in single_transfer()
1633 curl_mime_free(config->mimepost); in single_transfer()
1634 config->mimepost = NULL; in single_transfer()
1635 if(config->resume_from) { in single_transfer()
1640 result = tool2curlmime(curl, config->mimeroot, &config->mimepost); in single_transfer()
1642 my_setopt_mimepost(curl, CURLOPT_MIMEPOST, config->mimepost); in single_transfer()
1652 if(config->mime_options) in single_transfer()
1653 my_setopt(curl, CURLOPT_MIME_OPTIONS, config->mime_options); in single_transfer()
1656 if(config->authtype) in single_transfer()
1657 my_setopt_bitmask(curl, CURLOPT_HTTPAUTH, (long)config->authtype); in single_transfer()
1659 my_setopt_slist(curl, CURLOPT_HTTPHEADER, config->headers); in single_transfer()
1662 my_setopt_str(curl, CURLOPT_REFERER, config->referer); in single_transfer()
1663 my_setopt_str(curl, CURLOPT_USERAGENT, config->useragent); in single_transfer()
1670 config->followlocation?1L:0L); in single_transfer()
1672 config->unrestricted_auth?1L:0L); in single_transfer()
1673 my_setopt_str(curl, CURLOPT_AWS_SIGV4, config->aws_sigv4); in single_transfer()
1674 my_setopt(curl, CURLOPT_AUTOREFERER, config->autoreferer?1L:0L); in single_transfer()
1677 if(config->proxyheaders) { in single_transfer()
1678 my_setopt_slist(curl, CURLOPT_PROXYHEADER, config->proxyheaders); in single_transfer()
1683 my_setopt(curl, CURLOPT_MAXREDIRS, config->maxredirs); in single_transfer()
1685 if(config->httpversion) in single_transfer()
1686 my_setopt_enum(curl, CURLOPT_HTTP_VERSION, config->httpversion); in single_transfer()
1692 if(config->post301) in single_transfer()
1694 if(config->post302) in single_transfer()
1696 if(config->post303) in single_transfer()
1701 if(config->encoding) in single_transfer()
1705 if(config->tr_encoding) in single_transfer()
1709 config->http09_allowed ? 1L : 0L); in single_transfer()
1718 my_setopt_str(curl, CURLOPT_FTPPORT, config->ftpport); in single_transfer()
1720 config->low_speed_limit); in single_transfer()
1721 my_setopt(curl, CURLOPT_LOW_SPEED_TIME, config->low_speed_time); in single_transfer()
1723 config->sendpersecond); in single_transfer()
1725 config->recvpersecond); in single_transfer()
1727 if(config->use_resume) in single_transfer()
1728 my_setopt(curl, CURLOPT_RESUME_FROM_LARGE, config->resume_from); in single_transfer()
1732 my_setopt_str(curl, CURLOPT_KEYPASSWD, config->key_passwd); in single_transfer()
1733 my_setopt_str(curl, CURLOPT_PROXY_KEYPASSWD, config->proxy_key_passwd); in single_transfer()
1738 my_setopt_str(curl, CURLOPT_SSH_PRIVATE_KEYFILE, config->key); in single_transfer()
1740 my_setopt_str(curl, CURLOPT_SSH_PUBLIC_KEYFILE, config->pubkey); in single_transfer()
1745 config->hostpubmd5); in single_transfer()
1750 config->hostpubsha256); in single_transfer()
1753 if(config->ssh_compression) in single_transfer()
1757 if(config->cacert) in single_transfer()
1758 my_setopt_str(curl, CURLOPT_CAINFO, config->cacert); in single_transfer()
1759 if(config->proxy_cacert) in single_transfer()
1760 my_setopt_str(curl, CURLOPT_PROXY_CAINFO, config->proxy_cacert); in single_transfer()
1762 if(config->capath) { in single_transfer()
1763 result = res_setopt_str(curl, CURLOPT_CAPATH, config->capath); in single_transfer()
1774 if(config->proxy_capath || config->capath) { in single_transfer()
1776 (config->proxy_capath ? in single_transfer()
1777 config->proxy_capath : in single_transfer()
1778 config->capath)); in single_transfer()
1780 if(config->proxy_capath) { in single_transfer()
1789 if(config->crlfile) in single_transfer()
1790 my_setopt_str(curl, CURLOPT_CRLFILE, config->crlfile); in single_transfer()
1791 if(config->proxy_crlfile) in single_transfer()
1792 my_setopt_str(curl, CURLOPT_PROXY_CRLFILE, config->proxy_crlfile); in single_transfer()
1793 else if(config->crlfile) /* CURLOPT_PROXY_CRLFILE default is crlfile */ in single_transfer()
1794 my_setopt_str(curl, CURLOPT_PROXY_CRLFILE, config->crlfile); in single_transfer()
1796 if(config->pinnedpubkey) in single_transfer()
1797 my_setopt_str(curl, CURLOPT_PINNEDPUBLICKEY, config->pinnedpubkey); in single_transfer()
1799 if(config->ssl_ec_curves) in single_transfer()
1800 my_setopt_str(curl, CURLOPT_SSL_EC_CURVES, config->ssl_ec_curves); in single_transfer()
1802 if(config->writeout) in single_transfer()
1808 if(config->cert) { in single_transfer()
1809 if(!config->cert_type) { in single_transfer()
1810 if(is_pkcs11_uri(config->cert)) { in single_transfer()
1811 config->cert_type = strdup("ENG"); in single_transfer()
1818 if(config->key) { in single_transfer()
1819 if(!config->key_type) { in single_transfer()
1820 if(is_pkcs11_uri(config->key)) { in single_transfer()
1821 config->key_type = strdup("ENG"); in single_transfer()
1828 if(config->proxy_cert) { in single_transfer()
1829 if(!config->proxy_cert_type) { in single_transfer()
1830 if(is_pkcs11_uri(config->proxy_cert)) { in single_transfer()
1831 config->proxy_cert_type = strdup("ENG"); in single_transfer()
1838 if(config->proxy_key) { in single_transfer()
1839 if(!config->proxy_key_type) { in single_transfer()
1840 if(is_pkcs11_uri(config->proxy_key)) { in single_transfer()
1841 config->proxy_key_type = strdup("ENG"); in single_transfer()
1852 if(config->cert && (strlen(config->cert) > 8) && in single_transfer()
1853 (memcmp(config->cert, "loadmem=",8) == 0)) { in single_transfer()
1854 FILE *fInCert = fopen(config->cert + 8, "rb"); in single_transfer()
1887 my_setopt_str(curl, CURLOPT_SSLCERT, config->cert); in single_transfer()
1888 my_setopt_str(curl, CURLOPT_PROXY_SSLCERT, config->proxy_cert); in single_transfer()
1889 my_setopt_str(curl, CURLOPT_SSLCERTTYPE, config->cert_type); in single_transfer()
1891 config->proxy_cert_type); in single_transfer()
1895 if(config->key && (strlen(config->key) > 8) && in single_transfer()
1896 (memcmp(config->key, "loadmem=",8) == 0)) { in single_transfer()
1897 FILE *fInCert = fopen(config->key + 8, "rb"); in single_transfer()
1930 my_setopt_str(curl, CURLOPT_SSLKEY, config->key); in single_transfer()
1931 my_setopt_str(curl, CURLOPT_PROXY_SSLKEY, config->proxy_key); in single_transfer()
1932 my_setopt_str(curl, CURLOPT_SSLKEYTYPE, config->key_type); in single_transfer()
1934 config->proxy_key_type); in single_transfer()
1935 if(config->insecure_ok) { in single_transfer()
1945 if(config->doh_insecure_ok) { in single_transfer()
1950 if(config->proxy_insecure_ok) { in single_transfer()
1958 if(config->verifystatus) in single_transfer()
1961 if(config->doh_verifystatus) in single_transfer()
1964 if(config->falsestart) in single_transfer()
1968 config->ssl_version | config->ssl_version_max); in single_transfer()
1969 if(config->proxy) in single_transfer()
1971 config->proxy_ssl_version); in single_transfer()
1975 (config->ssl_allow_beast ? in single_transfer()
1977 (config->ssl_no_revoke ? in single_transfer()
1979 (config->ssl_revoke_best_effort ? in single_transfer()
1981 (config->native_ca_store ? in single_transfer()
1983 (config->ssl_auto_client_cert ? in single_transfer()
1992 (config->proxy_ssl_allow_beast ? in single_transfer()
1994 (config->proxy_ssl_auto_client_cert ? in single_transfer()
1996 (config->proxy_native_ca_store ? in single_transfer()
2004 if(config->path_as_is) in single_transfer()
2008 !config->insecure_ok) { in single_transfer()
2024 if(config->no_body || config->remote_time) { in single_transfer()
2029 my_setopt(curl, CURLOPT_CRLF, config->crlf?1L:0L); in single_transfer()
2030 my_setopt_slist(curl, CURLOPT_QUOTE, config->quote); in single_transfer()
2031 my_setopt_slist(curl, CURLOPT_POSTQUOTE, config->postquote); in single_transfer()
2032 my_setopt_slist(curl, CURLOPT_PREQUOTE, config->prequote); in single_transfer()
2034 if(config->cookies) { in single_transfer()
2041 for(cl = config->cookies; cl; cl = cl->next) { in single_transfer()
2042 if(cl == config->cookies) in single_transfer()
2059 if(config->cookiefiles) { in single_transfer()
2062 for(cfl = config->cookiefiles; cfl; cfl = cfl->next) in single_transfer()
2067 if(config->cookiejar) in single_transfer()
2068 my_setopt_str(curl, CURLOPT_COOKIEJAR, config->cookiejar); in single_transfer()
2071 my_setopt(curl, CURLOPT_COOKIESESSION, config->cookiesession?1L:0L); in single_transfer()
2073 my_setopt_enum(curl, CURLOPT_TIMECONDITION, (long)config->timecond); in single_transfer()
2074 my_setopt(curl, CURLOPT_TIMEVALUE_LARGE, config->condtime); in single_transfer()
2075 my_setopt_str(curl, CURLOPT_CUSTOMREQUEST, config->customrequest); in single_transfer()
2076 customrequest_helper(config, config->httpreq, config->customrequest); in single_transfer()
2080 my_setopt_str(curl, CURLOPT_INTERFACE, config->iface); in single_transfer()
2081 my_setopt_str(curl, CURLOPT_KRBLEVEL, config->krblevel); in single_transfer()
2082 progressbarinit(&per->progressbar, config); in single_transfer()
2100 if(config->dns_servers) in single_transfer()
2101 my_setopt_str(curl, CURLOPT_DNS_SERVERS, config->dns_servers); in single_transfer()
2104 if(config->dns_interface) in single_transfer()
2105 my_setopt_str(curl, CURLOPT_DNS_INTERFACE, config->dns_interface); in single_transfer()
2106 if(config->dns_ipv4_addr) in single_transfer()
2107 my_setopt_str(curl, CURLOPT_DNS_LOCAL_IP4, config->dns_ipv4_addr); in single_transfer()
2108 if(config->dns_ipv6_addr) in single_transfer()
2109 my_setopt_str(curl, CURLOPT_DNS_LOCAL_IP6, config->dns_ipv6_addr); in single_transfer()
2112 my_setopt_slist(curl, CURLOPT_TELNETOPTIONS, config->telnet_options); in single_transfer()
2115 my_setopt(curl, CURLOPT_CONNECTTIMEOUT_MS, config->connecttimeout_ms); in single_transfer()
2117 if(config->doh_url) in single_transfer()
2118 my_setopt_str(curl, CURLOPT_DOH_URL, config->doh_url); in single_transfer()
2120 if(config->cipher_list) in single_transfer()
2121 my_setopt_str(curl, CURLOPT_SSL_CIPHER_LIST, config->cipher_list); in single_transfer()
2123 if(config->proxy_cipher_list) in single_transfer()
2125 config->proxy_cipher_list); in single_transfer()
2127 if(config->cipher13_list) in single_transfer()
2128 my_setopt_str(curl, CURLOPT_TLS13_CIPHERS, config->cipher13_list); in single_transfer()
2130 if(config->proxy_cipher13_list) in single_transfer()
2132 config->proxy_cipher13_list); in single_transfer()
2135 if(config->disable_epsv) in single_transfer()
2140 if(config->disable_eprt) in single_transfer()
2146 my_setopt(curl, CURLOPT_DEBUGDATA, config); in single_transfer()
2151 if(config->engine) { in single_transfer()
2152 result = res_setopt_str(curl, CURLOPT_SSLENGINE, config->engine); in single_transfer()
2160 (long)(config->ftp_create_dirs? in single_transfer()
2165 if(config->max_filesize) in single_transfer()
2167 config->max_filesize); in single_transfer()
2169 my_setopt(curl, CURLOPT_IPRESOLVE, config->ip_version); in single_transfer()
2172 if(config->ftp_ssl_reqd) in single_transfer()
2176 else if(config->ftp_ssl) in single_transfer()
2180 else if(config->ftp_ssl_control) in single_transfer()
2184 if(config->ftp_ssl_ccc) in single_transfer()
2186 (long)config->ftp_ssl_ccc_mode); in single_transfer()
2189 if(config->socks5_gssapi_nec) in single_transfer()
2193 if(config->socks5_auth) in single_transfer()
2195 (long)config->socks5_auth); in single_transfer()
2198 if(config->proxy_service_name) in single_transfer()
2200 config->proxy_service_name); in single_transfer()
2203 if(config->service_name) in single_transfer()
2205 config->service_name); in single_transfer()
2208 my_setopt_str(curl, CURLOPT_FTP_ACCOUNT, config->ftp_account); in single_transfer()
2209 my_setopt(curl, CURLOPT_IGNORE_CONTENT_LENGTH, config->ignorecl?1L:0L); in single_transfer()
2212 my_setopt(curl, CURLOPT_FTP_SKIP_PASV_IP, config->ftp_skip_ip?1L:0L); in single_transfer()
2217 (long)config->ftp_filemethod); in single_transfer()
2220 if(config->localport) { in single_transfer()
2221 my_setopt(curl, CURLOPT_LOCALPORT, config->localport); in single_transfer()
2222 my_setopt_str(curl, CURLOPT_LOCALPORTRANGE, config->localportrange); in single_transfer()
2227 config->ftp_alternative_to_user); in single_transfer()
2230 if(config->disable_sessionid) in single_transfer()
2235 if(config->raw) { in single_transfer()
2241 if(!config->nokeepalive) { in single_transfer()
2243 if(config->alivetime) { in single_transfer()
2244 my_setopt(curl, CURLOPT_TCP_KEEPIDLE, config->alivetime); in single_transfer()
2245 my_setopt(curl, CURLOPT_TCP_KEEPINTVL, config->alivetime); in single_transfer()
2252 if(config->tftp_blksize && proto_tftp) in single_transfer()
2253 my_setopt(curl, CURLOPT_TFTP_BLKSIZE, config->tftp_blksize); in single_transfer()
2255 if(config->mail_from) in single_transfer()
2256 my_setopt_str(curl, CURLOPT_MAIL_FROM, config->mail_from); in single_transfer()
2258 if(config->mail_rcpt) in single_transfer()
2259 my_setopt_slist(curl, CURLOPT_MAIL_RCPT, config->mail_rcpt); in single_transfer()
2263 config->mail_rcpt_allowfails ? 1L : 0L); in single_transfer()
2266 if(config->ftp_pret) in single_transfer()
2269 if(config->create_file_mode) in single_transfer()
2270 my_setopt(curl, CURLOPT_NEW_FILE_PERMS, config->create_file_mode); in single_transfer()
2272 if(config->proto_present) in single_transfer()
2273 my_setopt_str(curl, CURLOPT_PROTOCOLS_STR, config->proto_str); in single_transfer()
2274 if(config->proto_redir_present) in single_transfer()
2276 config->proto_redir_str); in single_transfer()
2278 if(config->content_disposition in single_transfer()
2288 hdrcbdata->config = config; in single_transfer()
2293 if(config->resolve) in single_transfer()
2295 my_setopt_slist(curl, CURLOPT_RESOLVE, config->resolve); in single_transfer()
2297 if(config->connect_to) in single_transfer()
2299 my_setopt_slist(curl, CURLOPT_CONNECT_TO, config->connect_to); in single_transfer()
2303 if(config->tls_username) in single_transfer()
2305 config->tls_username); in single_transfer()
2306 if(config->tls_password) in single_transfer()
2308 config->tls_password); in single_transfer()
2309 if(config->tls_authtype) in single_transfer()
2311 config->tls_authtype); in single_transfer()
2312 if(config->proxy_tls_username) in single_transfer()
2314 config->proxy_tls_username); in single_transfer()
2315 if(config->proxy_tls_password) in single_transfer()
2317 config->proxy_tls_password); in single_transfer()
2318 if(config->proxy_tls_authtype) in single_transfer()
2320 config->proxy_tls_authtype); in single_transfer()
2324 if(config->gssapi_delegation) in single_transfer()
2326 config->gssapi_delegation); in single_transfer()
2328 if(config->mail_auth) in single_transfer()
2329 my_setopt_str(curl, CURLOPT_MAIL_AUTH, config->mail_auth); in single_transfer()
2332 if(config->sasl_authzid) in single_transfer()
2333 my_setopt_str(curl, CURLOPT_SASL_AUTHZID, config->sasl_authzid); in single_transfer()
2336 if(config->sasl_ir) in single_transfer()
2339 if(config->noalpn) { in single_transfer()
2344 if(config->unix_socket_path) { in single_transfer()
2345 if(config->abstract_unix_socket) { in single_transfer()
2347 config->unix_socket_path); in single_transfer()
2351 config->unix_socket_path); in single_transfer()
2356 if(config->proto_default) in single_transfer()
2357 my_setopt_str(curl, CURLOPT_DEFAULT_PROTOCOL, config->proto_default); in single_transfer()
2360 if(config->expect100timeout_ms > 0) in single_transfer()
2362 config->expect100timeout_ms); in single_transfer()
2365 if(config->tftp_no_options && proto_tftp) in single_transfer()
2369 if(config->happy_eyeballs_timeout_ms != CURL_HET_DEFAULT) in single_transfer()
2371 config->happy_eyeballs_timeout_ms); in single_transfer()
2374 if(config->haproxy_protocol) in single_transfer()
2378 if(config->haproxy_clientip) in single_transfer()
2380 config->haproxy_clientip); in single_transfer()
2382 if(config->disallow_username_in_url) in single_transfer()
2385 if(config->altsvc) in single_transfer()
2386 my_setopt_str(curl, CURLOPT_ALTSVC, config->altsvc); in single_transfer()
2388 if(config->hsts) in single_transfer()
2389 my_setopt_str(curl, CURLOPT_HSTS, config->hsts); in single_transfer()
2392 per->retry_sleep_default = (config->retry_delay) ? in single_transfer()
2393 config->retry_delay*1000L : RETRY_SLEEP_DEFAULT; /* ms */ in single_transfer()
2394 per->retry_numretries = config->req_retry; in single_transfer()
2426 config->state.urlnode = urlnode->next; in single_transfer()
2437 single_transfer_cleanup(config); in single_transfer()
2738 struct OperationConfig *config, in transfer_per_config() argument
2747 if(!config->url_list || !config->url_list->url) { in transfer_per_config()
2762 if(!config->cacert && in transfer_per_config()
2763 !config->capath && in transfer_per_config()
2764 (!config->insecure_ok || (config->doh_url && !config->doh_insecure_ok))) { in transfer_per_config()
2791 config->cacert = strdup(env); in transfer_per_config()
2792 if(!config->cacert) { in transfer_per_config()
2802 config->capath = strdup(env); in transfer_per_config()
2803 if(!config->capath) { in transfer_per_config()
2814 config->cacert = strdup(env); in transfer_per_config()
2815 if(!config->cacert) { in transfer_per_config()
2818 free(config->capath); in transfer_per_config()
2830 result = FindWin32CACert(config, tls_backend_info->backend, in transfer_per_config()
2839 result = single_transfer(global, config, share, capath_from_env, added); in transfer_per_config()
2893 clean_getout(per->config); in run_all_transfers()