Lines Matching full:curl
12 * are also available at https://curl.se/docs/copyright.html.
21 * SPDX-License-Identifier: curl
91 CURLcode curl_easy_perform_ev(CURL *easy);
101 "More details here: https://curl.se/docs/sslcerts.html\n\n" \
102 "curl failed to verify the legitimacy of the server and therefore " \
338 my_setopt(per->curl, CURLOPT_INFILESIZE_LARGE, uploadfilesize); in pre_transfer()
378 CURL *curl = per->curl; in post_per_transfer() local
385 if(!curl || !config) in post_per_transfer()
402 fprintf(tool_stderr, "curl: (%d) %s\n", result, in post_per_transfer()
410 curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &code); in post_per_transfer()
414 "curl: (%d) The requested URL returned error: %ld\n", in post_per_transfer()
421 rc = fwrite_xattr(curl, per->this_url, fileno(outs->stream)); in post_per_transfer()
434 curl_easy_getinfo(curl, CURLINFO_CONDITION_UNMET, &cond_unmet); in post_per_transfer()
480 curl_easy_getinfo(curl, CURLINFO_OS_ERRNO, &oserrno); in post_per_transfer()
491 curl_easy_getinfo(curl, CURLINFO_SCHEME, &scheme); in post_per_transfer()
495 curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &response); in post_per_transfer()
522 curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &response); in post_per_transfer()
523 curl_easy_getinfo(curl, CURLINFO_SCHEME, &scheme); in post_per_transfer()
552 curl_easy_getinfo(curl, CURLINFO_RETRY_AFTER, &retry_after); in post_per_transfer()
637 errorf(config->global, "curl: (%d) Failed writing body", result); in post_per_transfer()
658 curl_easy_getinfo(curl, CURLINFO_FILETIME_T, &filetime); in post_per_transfer()
679 curl_easy_cleanup(per->curl); in post_per_transfer()
874 CURL *curl; in single_transfer() local
949 curl = curl_easy_init(); in single_transfer()
950 if(curl) in single_transfer()
955 curl_easy_cleanup(curl); in single_transfer()
964 curl_easy_cleanup(curl); in single_transfer()
970 curl_easy_cleanup(curl); in single_transfer()
977 per->curl = curl; in single_transfer()
1167 result = add_file_name_to_url(per->curl, &per->this_url, in single_transfer()
1268 result = curl_easy_setopt(curl, CURLOPT_SHARE, share); in single_transfer()
1283 result = curl_easy_setopt(curl, CURLOPT_QUICK_EXIT, 1L); in single_transfer()
1289 my_setopt(curl, CURLOPT_TCP_NODELAY, 0L); in single_transfer()
1292 my_setopt(curl, CURLOPT_TCP_FASTOPEN, 1L); in single_transfer()
1295 my_setopt(curl, CURLOPT_WRITEDATA, per); in single_transfer()
1296 my_setopt(curl, CURLOPT_INTERLEAVEDATA, per); in single_transfer()
1299 my_setopt(curl, CURLOPT_WRITEFUNCTION, tool_write_cb); in single_transfer()
1308 my_setopt(curl, CURLOPT_READDATA, per); in single_transfer()
1310 my_setopt(curl, CURLOPT_READFUNCTION, tool_read_cb); in single_transfer()
1314 my_setopt(curl, CURLOPT_SEEKDATA, per); in single_transfer()
1315 my_setopt(curl, CURLOPT_SEEKFUNCTION, tool_seek_cb); in single_transfer()
1323 my_setopt(curl, CURLOPT_BUFFERSIZE, size); in single_transfer()
1330 my_setopt(curl, CURLOPT_BUFFERSIZE, (long)config->recvpersecond); in single_transfer()
1332 my_setopt(curl, CURLOPT_BUFFERSIZE, (long)BUFFER_SIZE); in single_transfer()
1335 my_setopt_str(curl, CURLOPT_URL, per->this_url); in single_transfer()
1336 my_setopt(curl, CURLOPT_NOPROGRESS, in single_transfer()
1339 my_setopt(curl, CURLOPT_NOBODY, 1L); in single_transfer()
1342 my_setopt_str(curl, CURLOPT_XOAUTH2_BEARER, config->oauth_bearer); in single_transfer()
1344 my_setopt_str(curl, CURLOPT_PROXY, config->proxy); in single_transfer()
1355 my_setopt_enum(curl, CURLOPT_PROXYTYPE, config->proxyver); in single_transfer()
1357 my_setopt_str(curl, CURLOPT_PROXYUSERPWD, config->proxyuserpwd); in single_transfer()
1360 my_setopt(curl, CURLOPT_HTTPPROXYTUNNEL, config->proxytunnel?1L:0L); in single_transfer()
1364 my_setopt_str(curl, CURLOPT_PRE_PROXY, config->preproxy); in single_transfer()
1368 my_setopt_bitmask(curl, CURLOPT_PROXYAUTH, in single_transfer()
1371 my_setopt_bitmask(curl, CURLOPT_PROXYAUTH, in single_transfer()
1374 my_setopt_bitmask(curl, CURLOPT_PROXYAUTH, in single_transfer()
1377 my_setopt_bitmask(curl, CURLOPT_PROXYAUTH, in single_transfer()
1380 my_setopt_bitmask(curl, CURLOPT_PROXYAUTH, in single_transfer()
1384 my_setopt_str(curl, CURLOPT_NOPROXY, config->noproxy); in single_transfer()
1386 my_setopt(curl, CURLOPT_SUPPRESS_CONNECT_HEADERS, in single_transfer()
1389 my_setopt(curl, CURLOPT_FAILONERROR, config->failonerror?1L:0L); in single_transfer()
1390 my_setopt(curl, CURLOPT_REQUEST_TARGET, config->request_target); in single_transfer()
1391 my_setopt(curl, CURLOPT_UPLOAD, per->uploadfile?1L:0L); in single_transfer()
1392 my_setopt(curl, CURLOPT_DIRLISTONLY, config->dirlistonly?1L:0L); in single_transfer()
1393 my_setopt(curl, CURLOPT_APPEND, config->ftp_append?1L:0L); in single_transfer()
1396 my_setopt_enum(curl, CURLOPT_NETRC, (long)CURL_NETRC_OPTIONAL); in single_transfer()
1398 my_setopt_enum(curl, CURLOPT_NETRC, (long)CURL_NETRC_REQUIRED); in single_transfer()
1400 my_setopt_enum(curl, CURLOPT_NETRC, (long)CURL_NETRC_IGNORED); in single_transfer()
1403 my_setopt_str(curl, CURLOPT_NETRC_FILE, config->netrc_file); in single_transfer()
1405 my_setopt(curl, CURLOPT_TRANSFERTEXT, config->use_ascii?1L:0L); in single_transfer()
1407 my_setopt_str(curl, CURLOPT_LOGIN_OPTIONS, config->login_options); in single_transfer()
1408 my_setopt_str(curl, CURLOPT_USERPWD, config->userpwd); in single_transfer()
1409 my_setopt_str(curl, CURLOPT_RANGE, config->range); in single_transfer()
1412 my_setopt(curl, CURLOPT_ERRORBUFFER, global_errorbuffer); in single_transfer()
1414 my_setopt(curl, CURLOPT_TIMEOUT_MS, config->timeout_ms); in single_transfer()
1423 my_setopt_str(curl, CURLOPT_POSTFIELDS, in single_transfer()
1425 my_setopt(curl, CURLOPT_POSTFIELDSIZE_LARGE, in single_transfer()
1438 result = tool2curlmime(curl, config->mimeroot, &config->mimepost); in single_transfer()
1440 my_setopt_mimepost(curl, CURLOPT_MIMEPOST, config->mimepost); in single_transfer()
1451 my_setopt(curl, CURLOPT_MIME_OPTIONS, config->mime_options); in single_transfer()
1455 my_setopt_bitmask(curl, CURLOPT_HTTPAUTH, (long)config->authtype); in single_transfer()
1457 my_setopt_slist(curl, CURLOPT_HTTPHEADER, config->headers); in single_transfer()
1460 my_setopt_str(curl, CURLOPT_REFERER, config->referer); in single_transfer()
1461 my_setopt_str(curl, CURLOPT_USERAGENT, config->useragent); in single_transfer()
1467 my_setopt(curl, CURLOPT_FOLLOWLOCATION, in single_transfer()
1469 my_setopt(curl, CURLOPT_UNRESTRICTED_AUTH, in single_transfer()
1471 my_setopt_str(curl, CURLOPT_AWS_SIGV4, config->aws_sigv4); in single_transfer()
1472 my_setopt(curl, CURLOPT_AUTOREFERER, config->autoreferer?1L:0L); in single_transfer()
1476 my_setopt_slist(curl, CURLOPT_PROXYHEADER, config->proxyheaders); in single_transfer()
1477 my_setopt(curl, CURLOPT_HEADEROPT, (long)CURLHEADER_SEPARATE); in single_transfer()
1481 my_setopt(curl, CURLOPT_MAXREDIRS, config->maxredirs); in single_transfer()
1484 my_setopt_enum(curl, CURLOPT_HTTP_VERSION, config->httpversion); in single_transfer()
1486 my_setopt_enum(curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_2TLS); in single_transfer()
1488 /* curl 7.19.1 (the 301 version existed in 7.18.2), in single_transfer()
1496 my_setopt(curl, CURLOPT_POSTREDIR, postRedir); in single_transfer()
1500 my_setopt_str(curl, CURLOPT_ACCEPT_ENCODING, ""); in single_transfer()
1504 my_setopt(curl, CURLOPT_TRANSFER_ENCODING, 1L); in single_transfer()
1506 my_setopt(curl, CURLOPT_HTTP09_ALLOWED, in single_transfer()
1516 my_setopt_str(curl, CURLOPT_FTPPORT, config->ftpport); in single_transfer()
1517 my_setopt(curl, CURLOPT_LOW_SPEED_LIMIT, in single_transfer()
1519 my_setopt(curl, CURLOPT_LOW_SPEED_TIME, config->low_speed_time); in single_transfer()
1520 my_setopt(curl, CURLOPT_MAX_SEND_SPEED_LARGE, in single_transfer()
1522 my_setopt(curl, CURLOPT_MAX_RECV_SPEED_LARGE, in single_transfer()
1526 my_setopt(curl, CURLOPT_RESUME_FROM_LARGE, config->resume_from); in single_transfer()
1528 my_setopt(curl, CURLOPT_RESUME_FROM_LARGE, CURL_OFF_T_C(0)); in single_transfer()
1530 my_setopt_str(curl, CURLOPT_KEYPASSWD, config->key_passwd); in single_transfer()
1531 my_setopt_str(curl, CURLOPT_PROXY_KEYPASSWD, config->proxy_key_passwd); in single_transfer()
1536 my_setopt_str(curl, CURLOPT_SSH_PRIVATE_KEYFILE, config->key); in single_transfer()
1538 my_setopt_str(curl, CURLOPT_SSH_PUBLIC_KEYFILE, config->pubkey); in single_transfer()
1542 my_setopt_str(curl, CURLOPT_SSH_HOST_PUBLIC_KEY_MD5, in single_transfer()
1547 my_setopt_str(curl, CURLOPT_SSH_HOST_PUBLIC_KEY_SHA256, in single_transfer()
1552 my_setopt(curl, CURLOPT_SSH_COMPRESSION, 1L); in single_transfer()
1556 my_setopt_str(curl, CURLOPT_CAINFO, config->cacert); in single_transfer()
1558 my_setopt_str(curl, CURLOPT_PROXY_CAINFO, config->proxy_cacert); in single_transfer()
1561 result = res_setopt_str(curl, CURLOPT_CAPATH, config->capath); in single_transfer()
1573 result = res_setopt_str(curl, CURLOPT_PROXY_CAPATH, in single_transfer()
1589 my_setopt_str(curl, CURLOPT_CRLFILE, config->crlfile); in single_transfer()
1591 my_setopt_str(curl, CURLOPT_PROXY_CRLFILE, config->proxy_crlfile); in single_transfer()
1593 my_setopt_str(curl, CURLOPT_PROXY_CRLFILE, config->crlfile); in single_transfer()
1596 my_setopt_str(curl, CURLOPT_PINNEDPUBLICKEY, config->pinnedpubkey); in single_transfer()
1599 my_setopt_str(curl, CURLOPT_SSL_EC_CURVES, config->ssl_ec_curves); in single_transfer()
1602 my_setopt_str(curl, CURLOPT_CERTINFO, 1L); in single_transfer()
1645 /* In debug build of curl tool, using in single_transfer()
1677 my_setopt_str(curl, CURLOPT_SSLCERT_BLOB, &structblob); in single_transfer()
1686 my_setopt_str(curl, CURLOPT_SSLCERT, config->cert); in single_transfer()
1687 my_setopt_str(curl, CURLOPT_PROXY_SSLCERT, config->proxy_cert); in single_transfer()
1688 my_setopt_str(curl, CURLOPT_SSLCERTTYPE, config->cert_type); in single_transfer()
1689 my_setopt_str(curl, CURLOPT_PROXY_SSLCERTTYPE, in single_transfer()
1720 my_setopt_str(curl, CURLOPT_SSLKEY_BLOB, &structblob); in single_transfer()
1729 my_setopt_str(curl, CURLOPT_SSLKEY, config->key); in single_transfer()
1730 my_setopt_str(curl, CURLOPT_PROXY_SSLKEY, config->proxy_key); in single_transfer()
1731 my_setopt_str(curl, CURLOPT_SSLKEYTYPE, config->key_type); in single_transfer()
1732 my_setopt_str(curl, CURLOPT_PROXY_SSLKEYTYPE, in single_transfer()
1735 my_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L); in single_transfer()
1736 my_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L); in single_transfer()
1739 my_setopt(curl, CURLOPT_SSL_VERIFYPEER, 1L); in single_transfer()
1741 /* my_setopt(curl, CURLOPT_SSL_VERIFYHOST, 2L); */ in single_transfer()
1745 my_setopt(curl, CURLOPT_DOH_SSL_VERIFYPEER, 0L); in single_transfer()
1746 my_setopt(curl, CURLOPT_DOH_SSL_VERIFYHOST, 0L); in single_transfer()
1750 my_setopt(curl, CURLOPT_PROXY_SSL_VERIFYPEER, 0L); in single_transfer()
1751 my_setopt(curl, CURLOPT_PROXY_SSL_VERIFYHOST, 0L); in single_transfer()
1754 my_setopt(curl, CURLOPT_PROXY_SSL_VERIFYPEER, 1L); in single_transfer()
1758 my_setopt(curl, CURLOPT_SSL_VERIFYSTATUS, 1L); in single_transfer()
1761 my_setopt(curl, CURLOPT_DOH_SSL_VERIFYSTATUS, 1L); in single_transfer()
1764 my_setopt(curl, CURLOPT_SSL_FALSESTART, 1L); in single_transfer()
1766 my_setopt_SSLVERSION(curl, CURLOPT_SSLVERSION, in single_transfer()
1769 my_setopt_SSLVERSION(curl, CURLOPT_PROXY_SSLVERSION, in single_transfer()
1786 my_setopt_bitmask(curl, CURLOPT_SSL_OPTIONS, mask); in single_transfer()
1799 my_setopt_bitmask(curl, CURLOPT_PROXY_SSL_OPTIONS, mask); in single_transfer()
1804 my_setopt(curl, CURLOPT_PATH_AS_IS, 1L); in single_transfer()
1810 /* new in curl 7.19.6 */ in single_transfer()
1811 result = res_setopt_str(curl, CURLOPT_SSH_KNOWNHOSTS, known); in single_transfer()
1825 my_setopt(curl, CURLOPT_FILETIME, 1L); in single_transfer()
1828 my_setopt(curl, CURLOPT_CRLF, config->crlf?1L:0L); in single_transfer()
1829 my_setopt_slist(curl, CURLOPT_QUOTE, config->quote); in single_transfer()
1830 my_setopt_slist(curl, CURLOPT_POSTQUOTE, config->postquote); in single_transfer()
1831 my_setopt_slist(curl, CURLOPT_PREQUOTE, config->prequote); in single_transfer()
1854 my_setopt_str(curl, CURLOPT_COOKIE, curlx_dyn_ptr(&cookies)); in single_transfer()
1862 my_setopt_str(curl, CURLOPT_COOKIEFILE, cfl->data); in single_transfer()
1867 my_setopt_str(curl, CURLOPT_COOKIEJAR, config->cookiejar); in single_transfer()
1870 my_setopt(curl, CURLOPT_COOKIESESSION, config->cookiesession?1L:0L); in single_transfer()
1872 my_setopt_enum(curl, CURLOPT_TIMECONDITION, (long)config->timecond); in single_transfer()
1873 my_setopt(curl, CURLOPT_TIMEVALUE_LARGE, config->condtime); in single_transfer()
1874 my_setopt_str(curl, CURLOPT_CUSTOMREQUEST, config->customrequest); in single_transfer()
1876 my_setopt(curl, CURLOPT_STDERR, tool_stderr); in single_transfer()
1879 my_setopt_str(curl, CURLOPT_INTERFACE, config->iface); in single_transfer()
1880 my_setopt_str(curl, CURLOPT_KRBLEVEL, config->krblevel); in single_transfer()
1887 my_setopt(curl, CURLOPT_XFERINFOFUNCTION, tool_progress_cb); in single_transfer()
1888 my_setopt(curl, CURLOPT_XFERINFODATA, per); in single_transfer()
1893 my_setopt(curl, CURLOPT_NOPROGRESS, 0L); in single_transfer()
1894 my_setopt(curl, CURLOPT_XFERINFOFUNCTION, tool_readbusy_cb); in single_transfer()
1895 my_setopt(curl, CURLOPT_XFERINFODATA, per); in single_transfer()
1900 my_setopt_str(curl, CURLOPT_DNS_SERVERS, config->dns_servers); in single_transfer()
1904 my_setopt_str(curl, CURLOPT_DNS_INTERFACE, config->dns_interface); in single_transfer()
1906 my_setopt_str(curl, CURLOPT_DNS_LOCAL_IP4, config->dns_ipv4_addr); in single_transfer()
1908 my_setopt_str(curl, CURLOPT_DNS_LOCAL_IP6, config->dns_ipv6_addr); in single_transfer()
1911 my_setopt_slist(curl, CURLOPT_TELNETOPTIONS, config->telnet_options); in single_transfer()
1914 my_setopt(curl, CURLOPT_CONNECTTIMEOUT_MS, config->connecttimeout_ms); in single_transfer()
1917 my_setopt_str(curl, CURLOPT_DOH_URL, config->doh_url); in single_transfer()
1920 my_setopt_str(curl, CURLOPT_SSL_CIPHER_LIST, config->cipher_list); in single_transfer()
1923 my_setopt_str(curl, CURLOPT_PROXY_SSL_CIPHER_LIST, in single_transfer()
1927 my_setopt_str(curl, CURLOPT_TLS13_CIPHERS, config->cipher13_list); in single_transfer()
1930 my_setopt_str(curl, CURLOPT_PROXY_TLS13_CIPHERS, in single_transfer()
1936 my_setopt(curl, CURLOPT_FTP_USE_EPSV, 0L); in single_transfer()
1941 my_setopt(curl, CURLOPT_FTP_USE_EPRT, 0L); in single_transfer()
1944 my_setopt(curl, CURLOPT_DEBUGFUNCTION, tool_debug_cb); in single_transfer()
1945 my_setopt(curl, CURLOPT_DEBUGDATA, config); in single_transfer()
1946 my_setopt(curl, CURLOPT_VERBOSE, 1L); in single_transfer()
1949 /* new in curl 7.9.3 */ in single_transfer()
1951 result = res_setopt_str(curl, CURLOPT_SSLENGINE, config->engine); in single_transfer()
1956 /* new in curl 7.10.7, extended in 7.19.4. Modified to use in single_transfer()
1958 my_setopt(curl, CURLOPT_FTP_CREATE_MISSING_DIRS, in single_transfer()
1963 /* new in curl 7.10.8 */ in single_transfer()
1965 my_setopt(curl, CURLOPT_MAXFILESIZE_LARGE, in single_transfer()
1968 my_setopt(curl, CURLOPT_IPRESOLVE, config->ip_version); in single_transfer()
1970 /* new in curl 7.15.5 */ in single_transfer()
1972 my_setopt_enum(curl, CURLOPT_USE_SSL, (long)CURLUSESSL_ALL); in single_transfer()
1974 /* new in curl 7.11.0 */ in single_transfer()
1976 my_setopt_enum(curl, CURLOPT_USE_SSL, (long)CURLUSESSL_TRY); in single_transfer()
1978 /* new in curl 7.16.0 */ in single_transfer()
1980 my_setopt_enum(curl, CURLOPT_USE_SSL, (long)CURLUSESSL_CONTROL); in single_transfer()
1982 /* new in curl 7.16.1 */ in single_transfer()
1984 my_setopt_enum(curl, CURLOPT_FTP_SSL_CCC, in single_transfer()
1987 /* new in curl 7.19.4 */ in single_transfer()
1989 my_setopt_str(curl, CURLOPT_SOCKS5_GSSAPI_NEC, 1L); in single_transfer()
1991 /* new in curl 7.55.0 */ in single_transfer()
1993 my_setopt_bitmask(curl, CURLOPT_SOCKS5_AUTH, in single_transfer()
1996 /* new in curl 7.43.0 */ in single_transfer()
1998 my_setopt_str(curl, CURLOPT_PROXY_SERVICE_NAME, in single_transfer()
2001 /* new in curl 7.43.0 */ in single_transfer()
2003 my_setopt_str(curl, CURLOPT_SERVICE_NAME, in single_transfer()
2006 /* curl 7.13.0 */ in single_transfer()
2007 my_setopt_str(curl, CURLOPT_FTP_ACCOUNT, config->ftp_account); in single_transfer()
2008 my_setopt(curl, CURLOPT_IGNORE_CONTENT_LENGTH, config->ignorecl?1L:0L); in single_transfer()
2010 /* curl 7.14.2 */ in single_transfer()
2011 my_setopt(curl, CURLOPT_FTP_SKIP_PASV_IP, config->ftp_skip_ip?1L:0L); in single_transfer()
2013 /* curl 7.15.1 */ in single_transfer()
2015 my_setopt(curl, CURLOPT_FTP_FILEMETHOD, in single_transfer()
2018 /* curl 7.15.2 */ in single_transfer()
2020 my_setopt(curl, CURLOPT_LOCALPORT, config->localport); in single_transfer()
2021 my_setopt_str(curl, CURLOPT_LOCALPORTRANGE, config->localportrange); in single_transfer()
2024 /* curl 7.15.5 */ in single_transfer()
2025 my_setopt_str(curl, CURLOPT_FTP_ALTERNATIVE_TO_USER, in single_transfer()
2028 /* curl 7.16.0 */ in single_transfer()
2031 my_setopt(curl, CURLOPT_SSL_SESSIONID_CACHE, 0L); in single_transfer()
2033 /* curl 7.16.2 */ in single_transfer()
2035 my_setopt(curl, CURLOPT_HTTP_CONTENT_DECODING, 0L); in single_transfer()
2036 my_setopt(curl, CURLOPT_HTTP_TRANSFER_DECODING, 0L); in single_transfer()
2039 /* curl 7.17.1 */ in single_transfer()
2041 my_setopt(curl, CURLOPT_TCP_KEEPALIVE, 1L); in single_transfer()
2043 my_setopt(curl, CURLOPT_TCP_KEEPIDLE, config->alivetime); in single_transfer()
2044 my_setopt(curl, CURLOPT_TCP_KEEPINTVL, config->alivetime); in single_transfer()
2048 my_setopt(curl, CURLOPT_TCP_KEEPALIVE, 0L); in single_transfer()
2050 /* curl 7.20.0 */ in single_transfer()
2052 my_setopt(curl, CURLOPT_TFTP_BLKSIZE, config->tftp_blksize); in single_transfer()
2055 my_setopt_str(curl, CURLOPT_MAIL_FROM, config->mail_from); in single_transfer()
2058 my_setopt_slist(curl, CURLOPT_MAIL_RCPT, config->mail_rcpt); in single_transfer()
2060 /* curl 7.69.x */ in single_transfer()
2061 my_setopt(curl, CURLOPT_MAIL_RCPT_ALLOWFAILS, in single_transfer()
2064 /* curl 7.20.x */ in single_transfer()
2066 my_setopt(curl, CURLOPT_FTP_USE_PRET, 1L); in single_transfer()
2069 my_setopt(curl, CURLOPT_NEW_FILE_PERMS, config->create_file_mode); in single_transfer()
2072 my_setopt_str(curl, CURLOPT_PROTOCOLS_STR, config->proto_str); in single_transfer()
2074 my_setopt_str(curl, CURLOPT_REDIR_PROTOCOLS_STR, in single_transfer()
2089 my_setopt(curl, CURLOPT_HEADERFUNCTION, tool_header_cb); in single_transfer()
2090 my_setopt(curl, CURLOPT_HEADERDATA, per); in single_transfer()
2094 my_setopt_slist(curl, CURLOPT_RESOLVE, config->resolve); in single_transfer()
2098 my_setopt_slist(curl, CURLOPT_CONNECT_TO, config->connect_to); in single_transfer()
2103 my_setopt_str(curl, CURLOPT_TLSAUTH_USERNAME, in single_transfer()
2106 my_setopt_str(curl, CURLOPT_TLSAUTH_PASSWORD, in single_transfer()
2109 my_setopt_str(curl, CURLOPT_TLSAUTH_TYPE, in single_transfer()
2112 my_setopt_str(curl, CURLOPT_PROXY_TLSAUTH_USERNAME, in single_transfer()
2115 my_setopt_str(curl, CURLOPT_PROXY_TLSAUTH_PASSWORD, in single_transfer()
2118 my_setopt_str(curl, CURLOPT_PROXY_TLSAUTH_TYPE, in single_transfer()
2124 my_setopt_str(curl, CURLOPT_GSSAPI_DELEGATION, in single_transfer()
2128 my_setopt_str(curl, CURLOPT_MAIL_AUTH, config->mail_auth); in single_transfer()
2132 my_setopt_str(curl, CURLOPT_SASL_AUTHZID, config->sasl_authzid); in single_transfer()
2136 my_setopt(curl, CURLOPT_SASL_IR, 1L); in single_transfer()
2139 my_setopt(curl, CURLOPT_SSL_ENABLE_ALPN, 0L); in single_transfer()
2145 my_setopt_str(curl, CURLOPT_ABSTRACT_UNIX_SOCKET, in single_transfer()
2149 my_setopt_str(curl, CURLOPT_UNIX_SOCKET_PATH, in single_transfer()
2156 my_setopt_str(curl, CURLOPT_DEFAULT_PROTOCOL, config->proto_default); in single_transfer()
2160 my_setopt_str(curl, CURLOPT_EXPECT_100_TIMEOUT_MS, in single_transfer()
2165 my_setopt(curl, CURLOPT_TFTP_NO_OPTIONS, 1L); in single_transfer()
2169 my_setopt(curl, CURLOPT_HAPPY_EYEBALLS_TIMEOUT_MS, in single_transfer()
2174 my_setopt(curl, CURLOPT_HAPROXYPROTOCOL, 1L); in single_transfer()
2178 my_setopt_str(curl, CURLOPT_HAPROXY_CLIENT_IP, in single_transfer()
2182 my_setopt(curl, CURLOPT_DISALLOW_USERNAME_IN_URL, 1L); in single_transfer()
2185 my_setopt_str(curl, CURLOPT_ALTSVC, config->altsvc); in single_transfer()
2188 my_setopt_str(curl, CURLOPT_HSTS, config->hsts); in single_transfer()
2193 my_setopt_str(curl, CURLOPT_ECH, config->ech); in single_transfer()
2195 my_setopt_str(curl, CURLOPT_ECH, config->ech_public); in single_transfer()
2197 my_setopt_str(curl, CURLOPT_ECH, config->ech_config); in single_transfer()
2299 (void)curl_easy_setopt(per->curl, CURLOPT_PIPEWAIT, in add_parallel_transfers()
2301 (void)curl_easy_setopt(per->curl, CURLOPT_PRIVATE, per); in add_parallel_transfers()
2302 (void)curl_easy_setopt(per->curl, CURLOPT_XFERINFOFUNCTION, xferinfo_cb); in add_parallel_transfers()
2303 (void)curl_easy_setopt(per->curl, CURLOPT_XFERINFODATA, per); in add_parallel_transfers()
2304 (void)curl_easy_setopt(per->curl, CURLOPT_NOPROGRESS, 0L); in add_parallel_transfers()
2306 mcode = curl_multi_add_handle(multi, per->curl); in add_parallel_transfers()
2319 (void)curl_easy_setopt(per->curl, CURLOPT_ERRORBUFFER, errorbuf); in add_parallel_transfers()
2388 CURL *easy = msg->easy_handle; in parallel_transfers()
2495 result = curl_easy_perform_ev(per->curl); in serial_transfers()
2498 result = curl_easy_perform(per->curl); in serial_transfers()
2561 /* On WIN32 we can't set the path to curl-ca-bundle.crt in transfer_per_config()
2574 CURL *curltls = curl_easy_init(); in transfer_per_config()
2590 * default filename curl-ca-bundle.crt in the user's PATH. in transfer_per_config()
2637 TEXT("curl-ca-bundle.crt")); in transfer_per_config()