• Home
  • Raw
  • Download

Lines Matching full:curl

12  * are also available at https://curl.se/docs/copyright.html.
21 * SPDX-License-Identifier: curl
90 CURLcode curl_easy_perform_ev(CURL *easy);
100 "More details here: https://curl.se/docs/sslcerts.html\n\n" \
101 "curl failed to verify the legitimacy of the server and therefore " \
337 my_setopt(per->curl, CURLOPT_INFILESIZE_LARGE, uploadfilesize); in pre_transfer()
394 CURL *curl = per->curl; in post_per_transfer() local
398 if(!curl || !config) in post_per_transfer()
418 fprintf(tool_stderr, "curl: (%d) %s\n", result, in post_per_transfer()
426 curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &code); in post_per_transfer()
430 "curl: (%d) The requested URL returned error: %ld\n", in post_per_transfer()
437 rc = fwrite_xattr(curl, per->this_url, fileno(outs->stream)); in post_per_transfer()
450 curl_easy_getinfo(curl, CURLINFO_CONDITION_UNMET, &cond_unmet); in post_per_transfer()
496 curl_easy_getinfo(curl, CURLINFO_OS_ERRNO, &oserrno); in post_per_transfer()
507 curl_easy_getinfo(curl, CURLINFO_SCHEME, &scheme); in post_per_transfer()
511 curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &response); in post_per_transfer()
538 curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &response); in post_per_transfer()
539 curl_easy_getinfo(curl, CURLINFO_SCHEME, &scheme); in post_per_transfer()
568 curl_easy_getinfo(curl, CURLINFO_RETRY_AFTER, &retry_after); in post_per_transfer()
653 errorf(config->global, "curl: (%d) Failed writing body", result); in post_per_transfer()
667 curl_easy_getinfo(curl, CURLINFO_FILETIME_T, &filetime); in post_per_transfer()
688 curl_easy_cleanup(per->curl); in post_per_transfer()
867 helpf(tool_stderr, "malformed URL. Visit https://curl.se/" in ipfs_url_rewrite()
874 "failure. Visit https://curl.se/docs/" in ipfs_url_rewrite()
880 "malformed URL. Visit https://curl.se/" in ipfs_url_rewrite()
1078 CURL *curl; in single_transfer() local
1153 curl = curl_easy_init(); in single_transfer()
1154 if(curl) in single_transfer()
1159 curl_easy_cleanup(curl); in single_transfer()
1168 curl_easy_cleanup(curl); in single_transfer()
1174 curl_easy_cleanup(curl); in single_transfer()
1181 per->curl = curl; in single_transfer()
1371 result = add_file_name_to_url(per->curl, &per->this_url, in single_transfer()
1472 result = curl_easy_setopt(curl, CURLOPT_SHARE, share); in single_transfer()
1486 result = curl_easy_setopt(curl, CURLOPT_QUICK_EXIT, 1L); in single_transfer()
1491 my_setopt(curl, CURLOPT_TCP_NODELAY, 0L); in single_transfer()
1494 my_setopt(curl, CURLOPT_TCP_FASTOPEN, 1L); in single_transfer()
1497 my_setopt(curl, CURLOPT_WRITEDATA, per); in single_transfer()
1498 my_setopt(curl, CURLOPT_INTERLEAVEDATA, per); in single_transfer()
1501 my_setopt(curl, CURLOPT_WRITEFUNCTION, tool_write_cb); in single_transfer()
1510 my_setopt(curl, CURLOPT_READDATA, per); in single_transfer()
1512 my_setopt(curl, CURLOPT_READFUNCTION, tool_read_cb); in single_transfer()
1516 my_setopt(curl, CURLOPT_SEEKDATA, per); in single_transfer()
1517 my_setopt(curl, CURLOPT_SEEKFUNCTION, tool_seek_cb); in single_transfer()
1525 my_setopt(curl, CURLOPT_BUFFERSIZE, size); in single_transfer()
1532 my_setopt(curl, CURLOPT_BUFFERSIZE, (long)config->recvpersecond); in single_transfer()
1534 my_setopt(curl, CURLOPT_BUFFERSIZE, (long)BUFFER_SIZE); in single_transfer()
1537 my_setopt_str(curl, CURLOPT_URL, per->this_url); in single_transfer()
1538 my_setopt(curl, CURLOPT_NOPROGRESS, in single_transfer()
1541 my_setopt(curl, CURLOPT_NOBODY, 1L); 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()
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()
1566 my_setopt_str(curl, CURLOPT_PRE_PROXY, config->preproxy); in single_transfer()
1570 my_setopt_bitmask(curl, CURLOPT_PROXYAUTH, in single_transfer()
1573 my_setopt_bitmask(curl, CURLOPT_PROXYAUTH, in single_transfer()
1576 my_setopt_bitmask(curl, CURLOPT_PROXYAUTH, in single_transfer()
1579 my_setopt_bitmask(curl, CURLOPT_PROXYAUTH, in single_transfer()
1582 my_setopt_bitmask(curl, CURLOPT_PROXYAUTH, in single_transfer()
1586 my_setopt_str(curl, CURLOPT_NOPROXY, config->noproxy); in single_transfer()
1588 my_setopt(curl, CURLOPT_SUPPRESS_CONNECT_HEADERS, 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()
1593 my_setopt(curl, CURLOPT_UPLOAD, per->uploadfile?1L:0L); 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()
1598 my_setopt_enum(curl, CURLOPT_NETRC, (long)CURL_NETRC_OPTIONAL); in single_transfer()
1600 my_setopt_enum(curl, CURLOPT_NETRC, (long)CURL_NETRC_REQUIRED); in single_transfer()
1602 my_setopt_enum(curl, CURLOPT_NETRC, (long)CURL_NETRC_IGNORED); 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()
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()
1614 my_setopt(curl, CURLOPT_ERRORBUFFER, global_errorbuffer); in single_transfer()
1616 my_setopt(curl, CURLOPT_TIMEOUT_MS, config->timeout_ms); in single_transfer()
1625 my_setopt_str(curl, CURLOPT_POSTFIELDS, in single_transfer()
1627 my_setopt(curl, CURLOPT_POSTFIELDSIZE_LARGE, 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()
1653 my_setopt(curl, CURLOPT_MIME_OPTIONS, config->mime_options); 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()
1669 my_setopt(curl, CURLOPT_FOLLOWLOCATION, in single_transfer()
1671 my_setopt(curl, CURLOPT_UNRESTRICTED_AUTH, 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()
1678 my_setopt_slist(curl, CURLOPT_PROXYHEADER, config->proxyheaders); in single_transfer()
1679 my_setopt(curl, CURLOPT_HEADEROPT, (long)CURLHEADER_SEPARATE); in single_transfer()
1683 my_setopt(curl, CURLOPT_MAXREDIRS, config->maxredirs); in single_transfer()
1686 my_setopt_enum(curl, CURLOPT_HTTP_VERSION, config->httpversion); in single_transfer()
1688 my_setopt_enum(curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_2TLS); in single_transfer()
1690 /* curl 7.19.1 (the 301 version existed in 7.18.2), in single_transfer()
1698 my_setopt(curl, CURLOPT_POSTREDIR, postRedir); in single_transfer()
1702 my_setopt_str(curl, CURLOPT_ACCEPT_ENCODING, ""); in single_transfer()
1706 my_setopt(curl, CURLOPT_TRANSFER_ENCODING, 1L); in single_transfer()
1708 my_setopt(curl, CURLOPT_HTTP09_ALLOWED, in single_transfer()
1718 my_setopt_str(curl, CURLOPT_FTPPORT, config->ftpport); in single_transfer()
1719 my_setopt(curl, CURLOPT_LOW_SPEED_LIMIT, in single_transfer()
1721 my_setopt(curl, CURLOPT_LOW_SPEED_TIME, config->low_speed_time); in single_transfer()
1722 my_setopt(curl, CURLOPT_MAX_SEND_SPEED_LARGE, in single_transfer()
1724 my_setopt(curl, CURLOPT_MAX_RECV_SPEED_LARGE, in single_transfer()
1728 my_setopt(curl, CURLOPT_RESUME_FROM_LARGE, config->resume_from); in single_transfer()
1730 my_setopt(curl, CURLOPT_RESUME_FROM_LARGE, CURL_OFF_T_C(0)); 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()
1744 my_setopt_str(curl, CURLOPT_SSH_HOST_PUBLIC_KEY_MD5, in single_transfer()
1749 my_setopt_str(curl, CURLOPT_SSH_HOST_PUBLIC_KEY_SHA256, in single_transfer()
1754 my_setopt(curl, CURLOPT_SSH_COMPRESSION, 1L); in single_transfer()
1758 my_setopt_str(curl, CURLOPT_CAINFO, config->cacert); in single_transfer()
1760 my_setopt_str(curl, CURLOPT_PROXY_CAINFO, config->proxy_cacert); in single_transfer()
1763 result = res_setopt_str(curl, CURLOPT_CAPATH, config->capath); in single_transfer()
1775 result = res_setopt_str(curl, CURLOPT_PROXY_CAPATH, in single_transfer()
1790 my_setopt_str(curl, CURLOPT_CRLFILE, config->crlfile); in single_transfer()
1792 my_setopt_str(curl, CURLOPT_PROXY_CRLFILE, config->proxy_crlfile); in single_transfer()
1794 my_setopt_str(curl, CURLOPT_PROXY_CRLFILE, config->crlfile); in single_transfer()
1797 my_setopt_str(curl, CURLOPT_PINNEDPUBLICKEY, config->pinnedpubkey); in single_transfer()
1800 my_setopt_str(curl, CURLOPT_SSL_EC_CURVES, config->ssl_ec_curves); in single_transfer()
1803 my_setopt_str(curl, CURLOPT_CERTINFO, 1L); in single_transfer()
1846 /* In debug build of curl tool, using in single_transfer()
1878 my_setopt_str(curl, CURLOPT_SSLCERT_BLOB, &structblob); 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()
1890 my_setopt_str(curl, CURLOPT_PROXY_SSLCERTTYPE, in single_transfer()
1921 my_setopt_str(curl, CURLOPT_SSLKEY_BLOB, &structblob); 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()
1933 my_setopt_str(curl, CURLOPT_PROXY_SSLKEYTYPE, in single_transfer()
1936 my_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L); in single_transfer()
1937 my_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L); in single_transfer()
1940 my_setopt(curl, CURLOPT_SSL_VERIFYPEER, 1L); in single_transfer()
1942 /* my_setopt(curl, CURLOPT_SSL_VERIFYHOST, 2L); */ in single_transfer()
1946 my_setopt(curl, CURLOPT_DOH_SSL_VERIFYPEER, 0L); in single_transfer()
1947 my_setopt(curl, CURLOPT_DOH_SSL_VERIFYHOST, 0L); in single_transfer()
1951 my_setopt(curl, CURLOPT_PROXY_SSL_VERIFYPEER, 0L); in single_transfer()
1952 my_setopt(curl, CURLOPT_PROXY_SSL_VERIFYHOST, 0L); in single_transfer()
1955 my_setopt(curl, CURLOPT_PROXY_SSL_VERIFYPEER, 1L); in single_transfer()
1959 my_setopt(curl, CURLOPT_SSL_VERIFYSTATUS, 1L); in single_transfer()
1962 my_setopt(curl, CURLOPT_DOH_SSL_VERIFYSTATUS, 1L); in single_transfer()
1965 my_setopt(curl, CURLOPT_SSL_FALSESTART, 1L); in single_transfer()
1967 my_setopt_enum(curl, CURLOPT_SSLVERSION, in single_transfer()
1970 my_setopt_enum(curl, CURLOPT_PROXY_SSLVERSION, in single_transfer()
1987 my_setopt_bitmask(curl, CURLOPT_SSL_OPTIONS, mask); in single_transfer()
2000 my_setopt_bitmask(curl, CURLOPT_PROXY_SSL_OPTIONS, mask); in single_transfer()
2005 my_setopt(curl, CURLOPT_PATH_AS_IS, 1L); in single_transfer()
2011 /* new in curl 7.19.6 */ in single_transfer()
2012 result = res_setopt_str(curl, CURLOPT_SSH_KNOWNHOSTS, known); in single_transfer()
2026 my_setopt(curl, CURLOPT_FILETIME, 1L); 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()
2055 my_setopt_str(curl, CURLOPT_COOKIE, curlx_dyn_ptr(&cookies)); in single_transfer()
2063 my_setopt_str(curl, CURLOPT_COOKIEFILE, cfl->data); 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()
2077 my_setopt(curl, CURLOPT_STDERR, tool_stderr); 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()
2088 my_setopt(curl, CURLOPT_XFERINFOFUNCTION, tool_progress_cb); in single_transfer()
2089 my_setopt(curl, CURLOPT_XFERINFODATA, per); in single_transfer()
2094 my_setopt(curl, CURLOPT_NOPROGRESS, 0L); in single_transfer()
2095 my_setopt(curl, CURLOPT_XFERINFOFUNCTION, tool_readbusy_cb); in single_transfer()
2096 my_setopt(curl, CURLOPT_XFERINFODATA, per); in single_transfer()
2101 my_setopt_str(curl, CURLOPT_DNS_SERVERS, config->dns_servers); in single_transfer()
2105 my_setopt_str(curl, CURLOPT_DNS_INTERFACE, config->dns_interface); in single_transfer()
2107 my_setopt_str(curl, CURLOPT_DNS_LOCAL_IP4, config->dns_ipv4_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()
2118 my_setopt_str(curl, CURLOPT_DOH_URL, config->doh_url); in single_transfer()
2121 my_setopt_str(curl, CURLOPT_SSL_CIPHER_LIST, config->cipher_list); in single_transfer()
2124 my_setopt_str(curl, CURLOPT_PROXY_SSL_CIPHER_LIST, in single_transfer()
2128 my_setopt_str(curl, CURLOPT_TLS13_CIPHERS, config->cipher13_list); in single_transfer()
2131 my_setopt_str(curl, CURLOPT_PROXY_TLS13_CIPHERS, in single_transfer()
2137 my_setopt(curl, CURLOPT_FTP_USE_EPSV, 0L); in single_transfer()
2142 my_setopt(curl, CURLOPT_FTP_USE_EPRT, 0L); in single_transfer()
2145 my_setopt(curl, CURLOPT_DEBUGFUNCTION, tool_debug_cb); in single_transfer()
2146 my_setopt(curl, CURLOPT_DEBUGDATA, config); in single_transfer()
2147 my_setopt(curl, CURLOPT_VERBOSE, 1L); in single_transfer()
2150 /* new in curl 7.9.3 */ in single_transfer()
2152 result = res_setopt_str(curl, CURLOPT_SSLENGINE, config->engine); in single_transfer()
2157 /* new in curl 7.10.7, extended in 7.19.4. Modified to use in single_transfer()
2159 my_setopt(curl, CURLOPT_FTP_CREATE_MISSING_DIRS, in single_transfer()
2164 /* new in curl 7.10.8 */ in single_transfer()
2166 my_setopt(curl, CURLOPT_MAXFILESIZE_LARGE, in single_transfer()
2169 my_setopt(curl, CURLOPT_IPRESOLVE, config->ip_version); in single_transfer()
2171 /* new in curl 7.15.5 */ in single_transfer()
2173 my_setopt_enum(curl, CURLOPT_USE_SSL, (long)CURLUSESSL_ALL); in single_transfer()
2175 /* new in curl 7.11.0 */ in single_transfer()
2177 my_setopt_enum(curl, CURLOPT_USE_SSL, (long)CURLUSESSL_TRY); in single_transfer()
2179 /* new in curl 7.16.0 */ in single_transfer()
2181 my_setopt_enum(curl, CURLOPT_USE_SSL, (long)CURLUSESSL_CONTROL); in single_transfer()
2183 /* new in curl 7.16.1 */ in single_transfer()
2185 my_setopt_enum(curl, CURLOPT_FTP_SSL_CCC, in single_transfer()
2188 /* new in curl 7.19.4 */ in single_transfer()
2190 my_setopt_str(curl, CURLOPT_SOCKS5_GSSAPI_NEC, 1L); in single_transfer()
2192 /* new in curl 7.55.0 */ in single_transfer()
2194 my_setopt_bitmask(curl, CURLOPT_SOCKS5_AUTH, in single_transfer()
2197 /* new in curl 7.43.0 */ in single_transfer()
2199 my_setopt_str(curl, CURLOPT_PROXY_SERVICE_NAME, in single_transfer()
2202 /* new in curl 7.43.0 */ in single_transfer()
2204 my_setopt_str(curl, CURLOPT_SERVICE_NAME, in single_transfer()
2207 /* curl 7.13.0 */ 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()
2211 /* curl 7.14.2 */ in single_transfer()
2212 my_setopt(curl, CURLOPT_FTP_SKIP_PASV_IP, config->ftp_skip_ip?1L:0L); in single_transfer()
2214 /* curl 7.15.1 */ in single_transfer()
2216 my_setopt(curl, CURLOPT_FTP_FILEMETHOD, in single_transfer()
2219 /* curl 7.15.2 */ 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()
2225 /* curl 7.15.5 */ in single_transfer()
2226 my_setopt_str(curl, CURLOPT_FTP_ALTERNATIVE_TO_USER, in single_transfer()
2229 /* curl 7.16.0 */ in single_transfer()
2232 my_setopt(curl, CURLOPT_SSL_SESSIONID_CACHE, 0L); in single_transfer()
2234 /* curl 7.16.2 */ in single_transfer()
2236 my_setopt(curl, CURLOPT_HTTP_CONTENT_DECODING, 0L); in single_transfer()
2237 my_setopt(curl, CURLOPT_HTTP_TRANSFER_DECODING, 0L); in single_transfer()
2240 /* curl 7.17.1 */ in single_transfer()
2242 my_setopt(curl, CURLOPT_TCP_KEEPALIVE, 1L); 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()
2249 my_setopt(curl, CURLOPT_TCP_KEEPALIVE, 0L); in single_transfer()
2251 /* curl 7.20.0 */ in single_transfer()
2253 my_setopt(curl, CURLOPT_TFTP_BLKSIZE, config->tftp_blksize); in single_transfer()
2256 my_setopt_str(curl, CURLOPT_MAIL_FROM, config->mail_from); in single_transfer()
2259 my_setopt_slist(curl, CURLOPT_MAIL_RCPT, config->mail_rcpt); in single_transfer()
2261 /* curl 7.69.x */ in single_transfer()
2262 my_setopt(curl, CURLOPT_MAIL_RCPT_ALLOWFAILS, in single_transfer()
2265 /* curl 7.20.x */ in single_transfer()
2267 my_setopt(curl, CURLOPT_FTP_USE_PRET, 1L); in single_transfer()
2270 my_setopt(curl, CURLOPT_NEW_FILE_PERMS, config->create_file_mode); in single_transfer()
2273 my_setopt_str(curl, CURLOPT_PROTOCOLS_STR, config->proto_str); in single_transfer()
2275 my_setopt_str(curl, CURLOPT_REDIR_PROTOCOLS_STR, in single_transfer()
2290 my_setopt(curl, CURLOPT_HEADERFUNCTION, tool_header_cb); in single_transfer()
2291 my_setopt(curl, CURLOPT_HEADERDATA, per); in single_transfer()
2295 my_setopt_slist(curl, CURLOPT_RESOLVE, config->resolve); in single_transfer()
2299 my_setopt_slist(curl, CURLOPT_CONNECT_TO, config->connect_to); in single_transfer()
2304 my_setopt_str(curl, CURLOPT_TLSAUTH_USERNAME, in single_transfer()
2307 my_setopt_str(curl, CURLOPT_TLSAUTH_PASSWORD, in single_transfer()
2310 my_setopt_str(curl, CURLOPT_TLSAUTH_TYPE, in single_transfer()
2313 my_setopt_str(curl, CURLOPT_PROXY_TLSAUTH_USERNAME, in single_transfer()
2316 my_setopt_str(curl, CURLOPT_PROXY_TLSAUTH_PASSWORD, in single_transfer()
2319 my_setopt_str(curl, CURLOPT_PROXY_TLSAUTH_TYPE, in single_transfer()
2325 my_setopt_str(curl, CURLOPT_GSSAPI_DELEGATION, in single_transfer()
2329 my_setopt_str(curl, CURLOPT_MAIL_AUTH, config->mail_auth); in single_transfer()
2333 my_setopt_str(curl, CURLOPT_SASL_AUTHZID, config->sasl_authzid); in single_transfer()
2337 my_setopt(curl, CURLOPT_SASL_IR, 1L); in single_transfer()
2340 my_setopt(curl, CURLOPT_SSL_ENABLE_ALPN, 0L); in single_transfer()
2346 my_setopt_str(curl, CURLOPT_ABSTRACT_UNIX_SOCKET, in single_transfer()
2350 my_setopt_str(curl, CURLOPT_UNIX_SOCKET_PATH, in single_transfer()
2357 my_setopt_str(curl, CURLOPT_DEFAULT_PROTOCOL, config->proto_default); in single_transfer()
2361 my_setopt_str(curl, CURLOPT_EXPECT_100_TIMEOUT_MS, in single_transfer()
2366 my_setopt(curl, CURLOPT_TFTP_NO_OPTIONS, 1L); in single_transfer()
2370 my_setopt(curl, CURLOPT_HAPPY_EYEBALLS_TIMEOUT_MS, in single_transfer()
2375 my_setopt(curl, CURLOPT_HAPROXYPROTOCOL, 1L); in single_transfer()
2379 my_setopt_str(curl, CURLOPT_HAPROXY_CLIENT_IP, in single_transfer()
2383 my_setopt(curl, CURLOPT_DISALLOW_USERNAME_IN_URL, 1L); in single_transfer()
2386 my_setopt_str(curl, CURLOPT_ALTSVC, config->altsvc); in single_transfer()
2389 my_setopt_str(curl, CURLOPT_HSTS, config->hsts); in single_transfer()
2490 (void)curl_easy_setopt(per->curl, CURLOPT_PIPEWAIT, in add_parallel_transfers()
2492 (void)curl_easy_setopt(per->curl, CURLOPT_PRIVATE, per); in add_parallel_transfers()
2493 (void)curl_easy_setopt(per->curl, CURLOPT_XFERINFOFUNCTION, xferinfo_cb); in add_parallel_transfers()
2494 (void)curl_easy_setopt(per->curl, CURLOPT_XFERINFODATA, per); in add_parallel_transfers()
2495 (void)curl_easy_setopt(per->curl, CURLOPT_NOPROGRESS, 0L); in add_parallel_transfers()
2497 mcode = curl_multi_add_handle(multi, per->curl); in add_parallel_transfers()
2510 (void)curl_easy_setopt(per->curl, CURLOPT_ERRORBUFFER, errorbuf); in add_parallel_transfers()
2579 CURL *easy = msg->easy_handle; in parallel_transfers()
2686 result = curl_easy_perform_ev(per->curl); in serial_transfers()
2689 result = curl_easy_perform(per->curl); in serial_transfers()
2752 /* On WIN32 we can't set the path to curl-ca-bundle.crt in transfer_per_config()
2765 CURL *curltls = curl_easy_init(); in transfer_per_config()
2781 * default filename curl-ca-bundle.crt in the user's PATH. in transfer_per_config()
2831 TEXT("curl-ca-bundle.crt")); in transfer_per_config()