Lines Matching refs:curl
202 CURL *curl = config->easy; in operate_do() local
637 this_url = add_file_name_to_url(curl, this_url, uploadfile); in operate_do()
801 my_setopt(curl, CURLOPT_TCP_NODELAY, 1L); in operate_do()
804 my_setopt(curl, CURLOPT_WRITEDATA, &outs); in operate_do()
807 my_setopt(curl, CURLOPT_WRITEFUNCTION, tool_write_cb); in operate_do()
812 my_setopt(curl, CURLOPT_WRITEFUNCTION, metalink_write_cb); in operate_do()
825 my_setopt(curl, CURLOPT_READDATA, &input); in operate_do()
827 my_setopt(curl, CURLOPT_READFUNCTION, tool_read_cb); in operate_do()
831 my_setopt(curl, CURLOPT_SEEKDATA, &input); in operate_do()
832 my_setopt(curl, CURLOPT_SEEKFUNCTION, tool_seek_cb); in operate_do()
837 my_setopt(curl, CURLOPT_BUFFERSIZE, (long)config->recvpersecond); in operate_do()
841 my_setopt(curl, CURLOPT_INFILESIZE_LARGE, uploadfilesize); in operate_do()
842 my_setopt_str(curl, CURLOPT_URL, this_url); /* what to fetch */ in operate_do()
843 my_setopt(curl, CURLOPT_NOPROGRESS, global->noprogress?1L:0L); in operate_do()
845 my_setopt(curl, CURLOPT_NOBODY, 1L); in operate_do()
846 my_setopt(curl, CURLOPT_HEADER, 1L); in operate_do()
852 my_setopt(curl, CURLOPT_HEADER, config->include_headers?1L:0L); in operate_do()
855 my_setopt_str(curl, CURLOPT_XOAUTH2_BEARER, config->xoauth2_bearer); in operate_do()
861 my_setopt_str(curl, CURLOPT_PROXY, config->proxy); in operate_do()
862 my_setopt_str(curl, CURLOPT_PROXYUSERPWD, config->proxyuserpwd); in operate_do()
865 my_setopt(curl, CURLOPT_HTTPPROXYTUNNEL, config->proxytunnel?1L:0L); in operate_do()
869 my_setopt_enum(curl, CURLOPT_PROXYTYPE, (long)config->proxyver); in operate_do()
873 my_setopt_str(curl, CURLOPT_PROXY, config->socksproxy); in operate_do()
874 my_setopt_enum(curl, CURLOPT_PROXYTYPE, (long)config->socksver); in operate_do()
879 my_setopt_bitmask(curl, CURLOPT_PROXYAUTH, in operate_do()
882 my_setopt_bitmask(curl, CURLOPT_PROXYAUTH, in operate_do()
885 my_setopt_bitmask(curl, CURLOPT_PROXYAUTH, in operate_do()
888 my_setopt_bitmask(curl, CURLOPT_PROXYAUTH, in operate_do()
891 my_setopt_bitmask(curl, CURLOPT_PROXYAUTH, in operate_do()
895 my_setopt(curl, CURLOPT_NOPROXY, config->noproxy); in operate_do()
899 my_setopt(curl, CURLOPT_FAILONERROR, config->failonerror?1L:0L); in operate_do()
900 my_setopt(curl, CURLOPT_UPLOAD, uploadfile?1L:0L); in operate_do()
901 my_setopt(curl, CURLOPT_DIRLISTONLY, config->dirlistonly?1L:0L); in operate_do()
902 my_setopt(curl, CURLOPT_APPEND, config->ftp_append?1L:0L); in operate_do()
905 my_setopt_enum(curl, CURLOPT_NETRC, (long)CURL_NETRC_OPTIONAL); in operate_do()
907 my_setopt_enum(curl, CURLOPT_NETRC, (long)CURL_NETRC_REQUIRED); in operate_do()
909 my_setopt_enum(curl, CURLOPT_NETRC, (long)CURL_NETRC_IGNORED); in operate_do()
912 my_setopt(curl, CURLOPT_NETRC_FILE, config->netrc_file); in operate_do()
914 my_setopt(curl, CURLOPT_TRANSFERTEXT, config->use_ascii?1L:0L); in operate_do()
916 my_setopt_str(curl, CURLOPT_LOGIN_OPTIONS, config->login_options); in operate_do()
917 my_setopt_str(curl, CURLOPT_USERPWD, config->userpwd); in operate_do()
918 my_setopt_str(curl, CURLOPT_RANGE, config->range); in operate_do()
919 my_setopt(curl, CURLOPT_ERRORBUFFER, errorbuffer); in operate_do()
920 my_setopt(curl, CURLOPT_TIMEOUT_MS, (long)(config->timeout * 1000)); in operate_do()
926 my_setopt(curl, CURLOPT_FOLLOWLOCATION, in operate_do()
928 my_setopt(curl, CURLOPT_UNRESTRICTED_AUTH, in operate_do()
933 my_setopt_str(curl, CURLOPT_POSTFIELDS, in operate_do()
935 my_setopt(curl, CURLOPT_POSTFIELDSIZE_LARGE, in operate_do()
939 my_setopt_httppost(curl, CURLOPT_HTTPPOST, config->httppost); in operate_do()
945 my_setopt_str(curl, CURLOPT_REFERER, config->referer); in operate_do()
946 my_setopt(curl, CURLOPT_AUTOREFERER, config->autoreferer?1L:0L); in operate_do()
947 my_setopt_str(curl, CURLOPT_USERAGENT, config->useragent); in operate_do()
948 my_setopt_slist(curl, CURLOPT_HTTPHEADER, config->headers); in operate_do()
952 my_setopt_slist(curl, CURLOPT_PROXYHEADER, config->proxyheaders); in operate_do()
953 my_setopt(curl, CURLOPT_HEADEROPT, CURLHEADER_SEPARATE); in operate_do()
957 my_setopt(curl, CURLOPT_MAXREDIRS, config->maxredirs); in operate_do()
961 my_setopt_enum(curl, CURLOPT_HTTP_VERSION, config->httpversion); in operate_do()
965 my_setopt_bitmask(curl, CURLOPT_HTTPAUTH, (long)config->authtype); in operate_do()
975 my_setopt(curl, CURLOPT_POSTREDIR, postRedir); in operate_do()
979 my_setopt_str(curl, CURLOPT_ACCEPT_ENCODING, ""); in operate_do()
983 my_setopt(curl, CURLOPT_TRANSFER_ENCODING, 1L); in operate_do()
987 my_setopt_str(curl, CURLOPT_FTPPORT, config->ftpport); in operate_do()
988 my_setopt(curl, CURLOPT_LOW_SPEED_LIMIT, in operate_do()
990 my_setopt(curl, CURLOPT_LOW_SPEED_TIME, config->low_speed_time); in operate_do()
991 my_setopt(curl, CURLOPT_MAX_SEND_SPEED_LARGE, in operate_do()
993 my_setopt(curl, CURLOPT_MAX_RECV_SPEED_LARGE, in operate_do()
997 my_setopt(curl, CURLOPT_RESUME_FROM_LARGE, config->resume_from); in operate_do()
999 my_setopt(curl, CURLOPT_RESUME_FROM_LARGE, CURL_OFF_T_C(0)); in operate_do()
1001 my_setopt_str(curl, CURLOPT_KEYPASSWD, config->key_passwd); in operate_do()
1007 my_setopt_str(curl, CURLOPT_SSH_PRIVATE_KEYFILE, config->key); in operate_do()
1009 my_setopt_str(curl, CURLOPT_SSH_PUBLIC_KEYFILE, config->pubkey); in operate_do()
1013 my_setopt_str(curl, CURLOPT_SSH_HOST_PUBLIC_KEY_MD5, in operate_do()
1018 my_setopt_str(curl, CURLOPT_CAINFO, config->cacert); in operate_do()
1020 my_setopt_str(curl, CURLOPT_CAPATH, config->capath); in operate_do()
1022 my_setopt_str(curl, CURLOPT_CRLFILE, config->crlfile); in operate_do()
1025 my_setopt_str(curl, CURLOPT_PINNEDPUBLICKEY, config->pinnedpubkey); in operate_do()
1028 my_setopt_str(curl, CURLOPT_SSLCERT, config->cert); in operate_do()
1029 my_setopt_str(curl, CURLOPT_SSLCERTTYPE, config->cert_type); in operate_do()
1030 my_setopt_str(curl, CURLOPT_SSLKEY, config->key); in operate_do()
1031 my_setopt_str(curl, CURLOPT_SSLKEYTYPE, config->key_type); in operate_do()
1034 my_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L); in operate_do()
1035 my_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L); in operate_do()
1038 my_setopt(curl, CURLOPT_SSL_VERIFYPEER, 1L); in operate_do()
1044 my_setopt(curl, CURLOPT_SSL_VERIFYSTATUS, 1L); in operate_do()
1047 my_setopt(curl, CURLOPT_SSL_FALSESTART, 1L); in operate_do()
1049 my_setopt_enum(curl, CURLOPT_SSLVERSION, config->ssl_version); in operate_do()
1052 my_setopt(curl, CURLOPT_PATH_AS_IS, 1L); in operate_do()
1064 result = res_setopt_str(curl, CURLOPT_SSH_KNOWNHOSTS, file); in operate_do()
1079 my_setopt(curl, CURLOPT_FILETIME, 1L); in operate_do()
1082 my_setopt(curl, CURLOPT_CRLF, config->crlf?1L:0L); in operate_do()
1083 my_setopt_slist(curl, CURLOPT_QUOTE, config->quote); in operate_do()
1084 my_setopt_slist(curl, CURLOPT_POSTQUOTE, config->postquote); in operate_do()
1085 my_setopt_slist(curl, CURLOPT_PREQUOTE, config->prequote); in operate_do()
1089 my_setopt_str(curl, CURLOPT_COOKIE, config->cookie); in operate_do()
1092 my_setopt_str(curl, CURLOPT_COOKIEFILE, config->cookiefile); in operate_do()
1096 my_setopt_str(curl, CURLOPT_COOKIEJAR, config->cookiejar); in operate_do()
1099 my_setopt(curl, CURLOPT_COOKIESESSION, config->cookiesession?1L:0L); in operate_do()
1108 my_setopt_enum(curl, CURLOPT_TIMECONDITION, (long)config->timecond); in operate_do()
1109 my_setopt(curl, CURLOPT_TIMEVALUE, (long)config->condtime); in operate_do()
1110 my_setopt_str(curl, CURLOPT_CUSTOMREQUEST, config->customrequest); in operate_do()
1111 my_setopt(curl, CURLOPT_STDERR, global->errors); in operate_do()
1114 my_setopt_str(curl, CURLOPT_INTERFACE, config->iface); in operate_do()
1115 my_setopt_str(curl, CURLOPT_KRBLEVEL, config->krblevel); in operate_do()
1122 my_setopt(curl, CURLOPT_XFERINFOFUNCTION, tool_progress_cb); in operate_do()
1123 my_setopt(curl, CURLOPT_XFERINFODATA, &progressbar); in operate_do()
1128 my_setopt_str(curl, CURLOPT_DNS_SERVERS, config->dns_servers); in operate_do()
1132 my_setopt_str(curl, CURLOPT_DNS_INTERFACE, config->dns_interface); in operate_do()
1134 my_setopt_str(curl, CURLOPT_DNS_LOCAL_IP4, config->dns_ipv4_addr); in operate_do()
1136 my_setopt_str(curl, CURLOPT_DNS_LOCAL_IP6, config->dns_ipv6_addr); in operate_do()
1139 my_setopt_slist(curl, CURLOPT_TELNETOPTIONS, config->telnet_options); in operate_do()
1142 my_setopt_str(curl, CURLOPT_RANDOM_FILE, config->random_file); in operate_do()
1143 my_setopt_str(curl, CURLOPT_EGDSOCKET, config->egd_file); in operate_do()
1144 my_setopt(curl, CURLOPT_CONNECTTIMEOUT_MS, in operate_do()
1148 my_setopt_str(curl, CURLOPT_SSL_CIPHER_LIST, config->cipher_list); in operate_do()
1153 my_setopt(curl, CURLOPT_FTP_USE_EPSV, 0L); in operate_do()
1158 my_setopt(curl, CURLOPT_FTP_USE_EPRT, 0L); in operate_do()
1161 my_setopt(curl, CURLOPT_DEBUGFUNCTION, tool_debug_cb); in operate_do()
1162 my_setopt(curl, CURLOPT_DEBUGDATA, config); in operate_do()
1163 my_setopt(curl, CURLOPT_VERBOSE, 1L); in operate_do()
1168 result = res_setopt_str(curl, CURLOPT_SSLENGINE, config->engine); in operate_do()
1171 my_setopt(curl, CURLOPT_SSLENGINE_DEFAULT, 1L); in operate_do()
1175 my_setopt(curl, CURLOPT_FTP_CREATE_MISSING_DIRS, in operate_do()
1180 my_setopt(curl, CURLOPT_MAXFILESIZE_LARGE, in operate_do()
1184 my_setopt(curl, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4); in operate_do()
1186 my_setopt(curl, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V6); in operate_do()
1188 my_setopt(curl, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_WHATEVER); in operate_do()
1192 my_setopt_enum(curl, CURLOPT_USE_SSL, (long)CURLUSESSL_ALL); in operate_do()
1196 my_setopt_enum(curl, CURLOPT_USE_SSL, (long)CURLUSESSL_TRY); in operate_do()
1200 my_setopt_enum(curl, CURLOPT_USE_SSL, (long)CURLUSESSL_CONTROL); in operate_do()
1204 my_setopt_enum(curl, CURLOPT_FTP_SSL_CCC, in operate_do()
1213 my_setopt_str(curl, CURLOPT_SOCKS5_GSSAPI_SERVICE, in operate_do()
1218 my_setopt_str(curl, CURLOPT_SOCKS5_GSSAPI_NEC, in operate_do()
1223 my_setopt_str(curl, CURLOPT_PROXY_SERVICE_NAME, in operate_do()
1228 my_setopt_str(curl, CURLOPT_SERVICE_NAME, in operate_do()
1234 my_setopt_str(curl, CURLOPT_FTP_ACCOUNT, config->ftp_account); in operate_do()
1236 my_setopt(curl, CURLOPT_IGNORE_CONTENT_LENGTH, config->ignorecl?1L:0L); in operate_do()
1239 my_setopt(curl, CURLOPT_FTP_SKIP_PASV_IP, config->ftp_skip_ip?1L:0L); in operate_do()
1242 my_setopt(curl, CURLOPT_FTP_FILEMETHOD, (long)config->ftp_filemethod); in operate_do()
1246 my_setopt(curl, CURLOPT_LOCALPORT, (long)config->localport); in operate_do()
1247 my_setopt_str(curl, CURLOPT_LOCALPORTRANGE, in operate_do()
1252 my_setopt_str(curl, CURLOPT_FTP_ALTERNATIVE_TO_USER, in operate_do()
1258 my_setopt(curl, CURLOPT_SSL_SESSIONID_CACHE, 0L); in operate_do()
1262 my_setopt(curl, CURLOPT_HTTP_CONTENT_DECODING, 0L); in operate_do()
1263 my_setopt(curl, CURLOPT_HTTP_TRANSFER_DECODING, 0L); in operate_do()
1268 my_setopt(curl, CURLOPT_TCP_KEEPALIVE, 1L); in operate_do()
1274 my_setopt(curl, CURLOPT_TCP_KEEPIDLE, config->alivetime); in operate_do()
1275 my_setopt(curl, CURLOPT_TCP_KEEPINTVL, config->alivetime); in operate_do()
1279 my_setopt(curl, CURLOPT_TCP_KEEPALIVE, 0L); in operate_do()
1283 my_setopt(curl, CURLOPT_TFTP_BLKSIZE, config->tftp_blksize); in operate_do()
1286 my_setopt_str(curl, CURLOPT_MAIL_FROM, config->mail_from); in operate_do()
1289 my_setopt_slist(curl, CURLOPT_MAIL_RCPT, config->mail_rcpt); in operate_do()
1293 my_setopt(curl, CURLOPT_FTP_USE_PRET, 1L); in operate_do()
1296 my_setopt_flags(curl, CURLOPT_PROTOCOLS, config->proto); in operate_do()
1298 my_setopt_flags(curl, CURLOPT_REDIR_PROTOCOLS, config->proto_redir); in operate_do()
1311 my_setopt(curl, CURLOPT_HEADERFUNCTION, tool_header_cb); in operate_do()
1312 my_setopt(curl, CURLOPT_HEADERDATA, &hdrcbdata); in operate_do()
1316 my_setopt_slist(curl, CURLOPT_RESOLVE, config->resolve); in operate_do()
1321 my_setopt_str(curl, CURLOPT_TLSAUTH_USERNAME, in operate_do()
1324 my_setopt_str(curl, CURLOPT_TLSAUTH_PASSWORD, in operate_do()
1327 my_setopt_str(curl, CURLOPT_TLSAUTH_TYPE, in operate_do()
1333 my_setopt_str(curl, CURLOPT_GSSAPI_DELEGATION, in operate_do()
1338 my_setopt(curl, CURLOPT_SSL_OPTIONS, (long)CURLSSLOPT_ALLOW_BEAST); in operate_do()
1341 my_setopt_str(curl, CURLOPT_MAIL_AUTH, config->mail_auth); in operate_do()
1345 my_setopt(curl, CURLOPT_SASL_IR, 1L); in operate_do()
1348 my_setopt(curl, CURLOPT_SSL_ENABLE_NPN, 0L); in operate_do()
1352 my_setopt(curl, CURLOPT_SSL_ENABLE_ALPN, 0L); in operate_do()
1357 my_setopt_str(curl, CURLOPT_UNIX_SOCKET_PATH, in operate_do()
1397 result = curl_easy_perform_ev(curl); in operate_do()
1400 result = curl_easy_perform(curl); in operate_do()
1409 curl_easy_getinfo(curl, CURLINFO_CONDITION_UNMET, &cond_unmet); in operate_do()
1445 curl_easy_getinfo(curl, CURLINFO_EFFECTIVE_URL, &effective_url); in operate_do()
1449 curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &response); in operate_do()
1472 curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &response); in operate_do()
1543 curl_easy_getinfo(curl, CURLINFO_EFFECTIVE_URL, &effective_url); in operate_do()
1547 curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &response); in operate_do()
1582 ourWriteOut(curl, &outs, config->writeout); in operate_do()
1585 ourWriteEnv(curl); in operate_do()
1629 int rc = fwrite_xattr(curl, fileno(outs.stream)); in operate_do()
1668 curl_easy_getinfo(curl, CURLINFO_FILETIME, &filetime); in operate_do()