• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/curl/curl-7.36.0/src/

Lines Matching defs:curl

12  * are also available at http://curl.haxx.se/docs/copyright.html.
101 "More details here: http://curl.haxx.se/docs/sslcerts.html\n\n" \
102 "curl performs SSL certificate verification by default, " \
113 "If you'd like to turn off curl's verification of the certificate, use\n" \
202 CURL *curl = config->easy;
233 /* On WIN32 we can't set the path to curl-ca-bundle.crt
285 res = FindWin32CACert(config, "curl-ca-bundle.crt");
637 this_url = add_file_name_to_url(curl, this_url, uploadfile);
801 my_setopt(curl, CURLOPT_TCP_NODELAY, 1L);
804 my_setopt(curl, CURLOPT_WRITEDATA, &outs);
807 my_setopt(curl, CURLOPT_WRITEFUNCTION, tool_write_cb);
812 my_setopt(curl, CURLOPT_WRITEFUNCTION, metalink_write_cb);
825 my_setopt(curl, CURLOPT_READDATA, &input);
827 my_setopt(curl, CURLOPT_READFUNCTION, tool_read_cb);
831 my_setopt(curl, CURLOPT_SEEKDATA, &input);
832 my_setopt(curl, CURLOPT_SEEKFUNCTION, tool_seek_cb);
837 my_setopt(curl, CURLOPT_BUFFERSIZE, (long)config->recvpersecond);
841 my_setopt(curl, CURLOPT_INFILESIZE_LARGE, uploadfilesize);
842 my_setopt_str(curl, CURLOPT_URL, this_url); /* what to fetch */
843 my_setopt(curl, CURLOPT_NOPROGRESS, global->noprogress?1L:0L);
845 my_setopt(curl, CURLOPT_NOBODY, 1L);
846 my_setopt(curl, CURLOPT_HEADER, 1L);
852 my_setopt(curl, CURLOPT_HEADER, config->include_headers?1L:0L);
855 my_setopt_str(curl, CURLOPT_XOAUTH2_BEARER, config->xoauth2_bearer);
861 my_setopt_str(curl, CURLOPT_PROXY, config->proxy);
862 my_setopt_str(curl, CURLOPT_PROXYUSERPWD, config->proxyuserpwd);
865 my_setopt(curl, CURLOPT_HTTPPROXYTUNNEL, config->proxytunnel?1L:0L);
869 my_setopt_enum(curl, CURLOPT_PROXYTYPE, (long)config->proxyver);
873 my_setopt_str(curl, CURLOPT_PROXY, config->socksproxy);
874 my_setopt_enum(curl, CURLOPT_PROXYTYPE, (long)config->socksver);
879 my_setopt_bitmask(curl, CURLOPT_PROXYAUTH,
882 my_setopt_bitmask(curl, CURLOPT_PROXYAUTH,
885 my_setopt_bitmask(curl, CURLOPT_PROXYAUTH,
888 my_setopt_bitmask(curl, CURLOPT_PROXYAUTH,
891 my_setopt_bitmask(curl, CURLOPT_PROXYAUTH,
895 my_setopt(curl, CURLOPT_NOPROXY, config->noproxy);
899 my_setopt(curl, CURLOPT_FAILONERROR, config->failonerror?1L:0L);
900 my_setopt(curl, CURLOPT_UPLOAD, uploadfile?1L:0L);
901 my_setopt(curl, CURLOPT_DIRLISTONLY, config->dirlistonly?1L:0L);
902 my_setopt(curl, CURLOPT_APPEND, config->ftp_append?1L:0L);
905 my_setopt_enum(curl, CURLOPT_NETRC, (long)CURL_NETRC_OPTIONAL);
907 my_setopt_enum(curl, CURLOPT_NETRC, (long)CURL_NETRC_REQUIRED);
909 my_setopt_enum(curl, CURLOPT_NETRC, (long)CURL_NETRC_IGNORED);
912 my_setopt(curl, CURLOPT_NETRC_FILE, config->netrc_file);
914 my_setopt(curl, CURLOPT_TRANSFERTEXT, config->use_ascii?1L:0L);
916 my_setopt_str(curl, CURLOPT_LOGIN_OPTIONS, config->login_options);
917 my_setopt_str(curl, CURLOPT_USERPWD, config->userpwd);
918 my_setopt_str(curl, CURLOPT_RANGE, config->range);
919 my_setopt(curl, CURLOPT_ERRORBUFFER, errorbuffer);
920 my_setopt(curl, CURLOPT_TIMEOUT_MS, (long)(config->timeout * 1000));
926 my_setopt(curl, CURLOPT_FOLLOWLOCATION,
928 my_setopt(curl, CURLOPT_UNRESTRICTED_AUTH,
933 my_setopt_str(curl, CURLOPT_POSTFIELDS,
935 my_setopt(curl, CURLOPT_POSTFIELDSIZE_LARGE,
939 my_setopt_httppost(curl, CURLOPT_HTTPPOST, config->httppost);
945 my_setopt_str(curl, CURLOPT_REFERER, config->referer);
946 my_setopt(curl, CURLOPT_AUTOREFERER, config->autoreferer?1L:0L);
947 my_setopt_str(curl, CURLOPT_USERAGENT, config->useragent);
948 my_setopt_slist(curl, CURLOPT_HTTPHEADER, config->headers);
951 my_setopt(curl, CURLOPT_MAXREDIRS, config->maxredirs);
955 my_setopt_enum(curl, CURLOPT_HTTP_VERSION, config->httpversion);
959 my_setopt_bitmask(curl, CURLOPT_HTTPAUTH, (long)config->authtype);
961 /* curl 7.19.1 (the 301 version existed in 7.18.2),
969 my_setopt(curl, CURLOPT_POSTREDIR, postRedir);
973 my_setopt_str(curl, CURLOPT_ACCEPT_ENCODING, "");
977 my_setopt(curl, CURLOPT_TRANSFER_ENCODING, 1L);
981 my_setopt_str(curl, CURLOPT_FTPPORT, config->ftpport);
982 my_setopt(curl, CURLOPT_LOW_SPEED_LIMIT,
984 my_setopt(curl, CURLOPT_LOW_SPEED_TIME, config->low_speed_time);
985 my_setopt(curl, CURLOPT_MAX_SEND_SPEED_LARGE,
987 my_setopt(curl, CURLOPT_MAX_RECV_SPEED_LARGE,
991 my_setopt(curl, CURLOPT_RESUME_FROM_LARGE, config->resume_from);
993 my_setopt(curl, CURLOPT_RESUME_FROM_LARGE, CURL_OFF_T_C(0));
995 my_setopt_str(curl, CURLOPT_SSLCERT, config->cert);
996 my_setopt_str(curl, CURLOPT_SSLCERTTYPE, config->cert_type);
997 my_setopt_str(curl, CURLOPT_SSLKEY, config->key);
998 my_setopt_str(curl, CURLOPT_SSLKEYTYPE, config->key_type);
999 my_setopt_str(curl, CURLOPT_KEYPASSWD, config->key_passwd);
1005 my_setopt_str(curl, CURLOPT_SSH_PRIVATE_KEYFILE, config->key);
1007 my_setopt_str(curl, CURLOPT_SSH_PUBLIC_KEYFILE, config->pubkey);
1011 my_setopt_str(curl, CURLOPT_SSH_HOST_PUBLIC_KEY_MD5,
1016 my_setopt_str(curl, CURLOPT_CAINFO, config->cacert);
1018 my_setopt_str(curl, CURLOPT_CAPATH, config->capath);
1020 my_setopt_str(curl, CURLOPT_CRLFILE, config->crlfile);
1024 my_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L);
1025 my_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L);
1028 my_setopt(curl, CURLOPT_SSL_VERIFYPEER, 1L);
1030 /* my_setopt(curl, CURLOPT_SSL_VERIFYHOST, 2L); */
1043 /* new in curl 7.19.6 */
1044 res = res_setopt_str(curl, CURLOPT_SSH_KNOWNHOSTS, file);
1059 my_setopt(curl, CURLOPT_FILETIME, 1L);
1062 my_setopt(curl, CURLOPT_CRLF, config->crlf?1L:0L);
1063 my_setopt_slist(curl, CURLOPT_QUOTE, config->quote);
1064 my_setopt_slist(curl, CURLOPT_POSTQUOTE, config->postquote);
1065 my_setopt_slist(curl, CURLOPT_PREQUOTE, config->prequote);
1072 my_setopt_str(curl, CURLOPT_COOKIE, config->cookie);
1075 my_setopt_str(curl, CURLOPT_COOKIEFILE, config->cookiefile);
1079 my_setopt_str(curl, CURLOPT_COOKIEJAR, config->cookiejar);
1082 my_setopt(curl, CURLOPT_COOKIESESSION, config->cookiesession?1L:0L);
1086 my_setopt_enum(curl, CURLOPT_SSLVERSION, config->ssl_version);
1087 my_setopt_enum(curl, CURLOPT_TIMECONDITION, (long)config->timecond);
1088 my_setopt(curl, CURLOPT_TIMEVALUE, (long)config->condtime);
1089 my_setopt_str(curl, CURLOPT_CUSTOMREQUEST, config->customrequest);
1090 my_setopt(curl, CURLOPT_STDERR, global->errors);
1093 my_setopt_str(curl, CURLOPT_INTERFACE, config->iface);
1094 my_setopt_str(curl, CURLOPT_KRBLEVEL, config->krblevel);
1101 my_setopt(curl, CURLOPT_XFERINFOFUNCTION, tool_progress_cb);
1102 my_setopt(curl, CURLOPT_XFERINFODATA, &progressbar);
1107 my_setopt_str(curl, CURLOPT_DNS_SERVERS, config->dns_servers);
1111 my_setopt_str(curl, CURLOPT_DNS_INTERFACE, config->dns_interface);
1113 my_setopt_str(curl, CURLOPT_DNS_LOCAL_IP4, config->dns_ipv4_addr);
1115 my_setopt_str(curl, CURLOPT_DNS_LOCAL_IP6, config->dns_ipv6_addr);
1118 my_setopt_slist(curl, CURLOPT_TELNETOPTIONS, config->telnet_options);
1121 my_setopt_str(curl, CURLOPT_RANDOM_FILE, config->random_file);
1122 my_setopt_str(curl, CURLOPT_EGDSOCKET, config->egd_file);
1123 my_setopt(curl, CURLOPT_CONNECTTIMEOUT_MS,
1127 my_setopt_str(curl, CURLOPT_SSL_CIPHER_LIST, config->cipher_list);
1132 my_setopt(curl, CURLOPT_FTP_USE_EPSV, 0L);
1137 my_setopt(curl, CURLOPT_FTP_USE_EPRT, 0L);
1140 my_setopt(curl, CURLOPT_DEBUGFUNCTION, tool_debug_cb);
1141 my_setopt(curl, CURLOPT_DEBUGDATA, config);
1142 my_setopt(curl, CURLOPT_VERBOSE, 1L);
1145 /* new in curl 7.9.3 */
1147 res = res_setopt_str(curl, CURLOPT_SSLENGINE, config->engine);
1150 my_setopt(curl, CURLOPT_SSLENGINE_DEFAULT, 1L);
1153 /* new in curl 7.10.7, extended in 7.19.4 but this only sets 0 or 1 */
1154 my_setopt(curl, CURLOPT_FTP_CREATE_MISSING_DIRS,
1157 /* new in curl 7.10.8 */
1159 my_setopt(curl, CURLOPT_MAXFILESIZE_LARGE,
1163 my_setopt(curl, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4);
1165 my_setopt(curl, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V6);
1167 my_setopt(curl, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_WHATEVER);
1169 /* new in curl 7.15.5 */
1171 my_setopt_enum(curl, CURLOPT_USE_SSL, (long)CURLUSESSL_ALL);
1173 /* new in curl 7.11.0 */
1175 my_setopt_enum(curl, CURLOPT_USE_SSL, (long)CURLUSESSL_TRY);
1177 /* new in curl 7.16.0 */
1179 my_setopt_enum(curl, CURLOPT_USE_SSL, (long)CURLUSESSL_CONTROL);
1181 /* new in curl 7.16.1 */
1183 my_setopt_enum(curl, CURLOPT_FTP_SSL_CCC,
1190 /* new in curl 7.19.4 */
1192 my_setopt_str(curl, CURLOPT_SOCKS5_GSSAPI_SERVICE,
1195 /* new in curl 7.19.4 */
1197 my_setopt_str(curl, CURLOPT_SOCKS5_GSSAPI_NEC,
1201 /* curl 7.13.0 */
1202 my_setopt_str(curl, CURLOPT_FTP_ACCOUNT, config->ftp_account);
1204 my_setopt(curl, CURLOPT_IGNORE_CONTENT_LENGTH, config->ignorecl?1L:0L);
1206 /* curl 7.14.2 */
1207 my_setopt(curl, CURLOPT_FTP_SKIP_PASV_IP, config->ftp_skip_ip?1L:0L);
1209 /* curl 7.15.1 */
1210 my_setopt(curl, CURLOPT_FTP_FILEMETHOD, (long)config->ftp_filemethod);
1212 /* curl 7.15.2 */
1214 my_setopt(curl, CURLOPT_LOCALPORT, (long)config->localport);
1215 my_setopt_str(curl, CURLOPT_LOCALPORTRANGE,
1219 /* curl 7.15.5 */
1220 my_setopt_str(curl, CURLOPT_FTP_ALTERNATIVE_TO_USER,
1223 /* curl 7.16.0 */
1226 my_setopt(curl, CURLOPT_SSL_SESSIONID_CACHE, 0L);
1228 /* curl 7.16.2 */
1230 my_setopt(curl, CURLOPT_HTTP_CONTENT_DECODING, 0L);
1231 my_setopt(curl, CURLOPT_HTTP_TRANSFER_DECODING, 0L);
1234 /* curl 7.17.1 */
1236 my_setopt(curl, CURLOPT_TCP_KEEPALIVE, 1L);
1242 my_setopt(curl, CURLOPT_TCP_KEEPIDLE, config->alivetime);
1243 my_setopt(curl, CURLOPT_TCP_KEEPINTVL, config->alivetime);
1247 my_setopt(curl, CURLOPT_TCP_KEEPALIVE, 0L);
1249 /* curl 7.20.0 */
1251 my_setopt(curl, CURLOPT_TFTP_BLKSIZE, config->tftp_blksize);
1254 my_setopt_str(curl, CURLOPT_MAIL_FROM, config->mail_from);
1257 my_setopt_slist(curl, CURLOPT_MAIL_RCPT, config->mail_rcpt);
1259 /* curl 7.20.x */
1261 my_setopt(curl, CURLOPT_FTP_USE_PRET, 1L);
1264 my_setopt_flags(curl, CURLOPT_PROTOCOLS, config->proto);
1266 my_setopt_flags(curl, CURLOPT_REDIR_PROTOCOLS, config->proto_redir);
1279 my_setopt(curl, CURLOPT_HEADERFUNCTION, tool_header_cb);
1280 my_setopt(curl, CURLOPT_HEADERDATA, &hdrcbdata);
1284 my_setopt_slist(curl, CURLOPT_RESOLVE, config->resolve);
1289 my_setopt_str(curl, CURLOPT_TLSAUTH_USERNAME,
1292 my_setopt_str(curl, CURLOPT_TLSAUTH_PASSWORD,
1295 my_setopt_str(curl, CURLOPT_TLSAUTH_TYPE,
1301 my_setopt_str(curl, CURLOPT_GSSAPI_DELEGATION,
1306 my_setopt(curl, CURLOPT_SSL_OPTIONS, (long)CURLSSLOPT_ALLOW_BEAST);
1309 my_setopt_str(curl, CURLOPT_MAIL_AUTH, config->mail_auth);
1313 my_setopt(curl, CURLOPT_SASL_IR, 1L);
1316 my_setopt(curl, CURLOPT_SSL_ENABLE_NPN, 0L);
1320 my_setopt(curl, CURLOPT_SSL_ENABLE_ALPN, 0L);
1360 res = curl_easy_perform_ev(curl);
1363 res = curl_easy_perform(curl);
1367 printf("curl: Saved to filename '%s'\n", outs.filename);
1396 curl_easy_getinfo(curl, CURLINFO_EFFECTIVE_URL, &effective_url);
1400 curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &response);
1423 curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &response);
1493 curl_easy_getinfo(curl, CURLINFO_EFFECTIVE_URL, &effective_url);
1497 curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &response);
1532 ourWriteOut(curl, &outs, config->writeout);
1535 ourWriteEnv(curl);
1555 fprintf(global->errors, "curl: (%d) %s\n", res, (errorbuffer[0]) ?
1579 int rc = fwrite_xattr(curl, fileno(outs.stream));
1618 curl_easy_getinfo(curl, CURLINFO_FILETIME, &filetime);