#include "setup.h"#include <stdio.h>#include <string.h>#include <stdarg.h>#include <stdlib.h>#include <ctype.h>#include <errno.h>#include "strequal.h"#include <signal.h>#include "urldata.h"#include <curl/curl.h>#include "transfer.h"#include "sslgen.h"#include "url.h"#include "getinfo.h"#include "hostip.h"#include "share.h"#include "strdup.h"#include "memory.h"#include "progress.h"#include "easyif.h"#include "select.h"#include "sendf.h"#include "ca-bundle.h"#include <curl/mprintf.h>#include "memdebug.h"Go to the source code of this file.
| #define system_strdup curlx_strdup |
| void Curl_easy_addmulti | ( | struct SessionHandle * | data, | |
| void * | multi | |||
| ) |
Definition at line 513 of file easy.c.
References SessionHandle::multi, NULL, SessionHandle::state, and UrlState::used_interface.
Referenced by curl_multi_add_handle(), curl_multi_cleanup(), and curl_multi_remove_handle().
| void curl_easy_cleanup | ( | CURL * | curl | ) |
Definition at line 500 of file easy.c.
References Curl_close().
Referenced by fsInternetFile2::_threadDownload().
Definition at line 551 of file easy.c.
References Progress::callback, calloc, SessionHandle::change, UrlState::connc, SessionHandle::cookies, UserDefined::cookiesession, Curl_cookie_init(), Curl_easy_initHandleData(), CURL_ICONV_CODESET_OF_HOST, Curl_mk_connc(), Curl_rm_connc(), CURLEASY_MAGIC_NUMBER, FALSE, CookieInfo::filename, Progress::flags, free, UrlState::headerbuff, UrlState::headersize, HEADERSIZE, UrlState::lastconnect, SessionHandle::magic, malloc, NULL, SessionHandle::progress, DynamicStatic::referer, DynamicStatic::referer_alloc, SessionHandle::set, SessionHandle::state, strdup, TRUE, conncache::type, DynamicStatic::url, DynamicStatic::url_alloc, and UrlState::used_interface.
Definition at line 534 of file easy.c.
References Curl_getinfo().
Referenced by fsInternetFile2::_threadDownload(), and fsInternetFile2::ExtractFileInfoFromResponse().
| CURL* curl_easy_init | ( | void | ) |
Definition at line 315 of file easy.c.
References CURL_GLOBAL_DEFAULT, curl_global_init(), Curl_open(), CURLE_OK, DEBUGF, and NULL.
Referenced by fsInternetFile2::Initialize().
| void Curl_easy_initHandleData | ( | struct SessionHandle * | data | ) |
Definition at line 523 of file easy.c.
References HandleData::maxdownload, and SessionHandle::reqdata.
Referenced by curl_easy_duphandle(), curl_easy_reset(), and Curl_open().
Definition at line 455 of file easy.c.
References UrlState::connc, Curl_global_host_cache_get(), Curl_global_host_cache_use, Curl_hash_destroy(), Curl_mk_connc(), Curl_mk_dnscache(), Curl_perform(), CURLE_BAD_FUNCTION_ARGUMENT, CURLE_OUT_OF_MEMORY, SessionHandle::dns, Names::hostcache, Curl_share::hostcache, Names::hostcachetype, SessionHandle::share, and SessionHandle::state.
Referenced by fsInternetFile2::_threadDownload().
| void curl_easy_reset | ( | CURL * | curl | ) |
Definition at line 667 of file easy.c.
References ssl_config_data::CAfile, Curl_easy_initHandleData(), Curl_safefree(), CURLAUTH_BASIC, CURLPROXY_HTTP, CURLSSH_AUTH_DEFAULT, UrlState::current_speed, UserDefined::dns_cache_timeout, UserDefined::err, Progress::flags, fread(), UserDefined::fread, UserDefined::ftp_use_eprt, UserDefined::ftp_use_epsv, fwrite(), UserDefined::fwrite, HandleData::generic, UserDefined::hide_progress, UserDefined::httpauth, UserDefined::httpreq, HTTPREQ_GET, UserDefined::in, UserDefined::infilesize, UserDefined::new_directory_perms, UserDefined::new_file_perms, NULL, ssl_config_data::numsessions, UserDefined::out, HandleData::pathbuffer, PGRS_HIDE, UserDefined::postfieldsize, SessionHandle::progress, HandleData::proto, UserDefined::proxyauth, UserDefined::proxyport, UserDefined::proxytype, SessionHandle::reqdata, SessionHandle::set, UserDefined::ssh_auth_types, UserDefined::ssl, SessionHandle::state, TRUE, ssl_config_data::verifyhost, and ssl_config_data::verifypeer.
| CURLcode curl_easy_setopt | ( | CURL * | curl, | |
| CURLoption | tag, | |||
| ... | ||||
| ) |
Definition at line 345 of file easy.c.
References Curl_setopt(), and CURLE_BAD_FUNCTION_ARGUMENT.
Referenced by fsInternetFile2::Initialize(), fsInternetFile2::set_Auth(), fsInternetFile2::set_Cookie(), fsInternetFile2::set_PostData(), fsInternetFile2::set_Proxy(), fsInternetFile2::set_Referer(), fsInternetFile2::set_ResumeFrom(), fsInternetFile2::set_URL(), fsInternetFile2::set_UseHttp11(), and fsInternetFile2::set_UserAgent().
| void curl_global_cleanup | ( | void | ) |
curl_global_cleanup() globally cleanups cURL, uses the value of "init_flags" to determine what needs to be cleaned up and what doesn't.
Definition at line 288 of file easy.c.
References Curl_global_host_cache_dtor(), CURL_GLOBAL_SSL, CURL_GLOBAL_WIN32, Curl_ssl_cleanup(), and win32_cleanup().
| CURLcode curl_global_init | ( | long | flags | ) |
curl_global_init() globally initializes cURL given a bitwise set of the different features of what to initialize.
Definition at line 213 of file easy.c.
References calloc, CURL_GLOBAL_SSL, CURL_GLOBAL_WIN32, Curl_ssl_init(), CURLE_FAILED_INIT, CURLE_OK, DEBUGF, free, malloc, realloc, system_strdup, and win32_init().
Referenced by curl_easy_init(), and curl_global_init_mem().
| CURLcode curl_global_init_mem | ( | long | flags, | |
| curl_malloc_callback | m, | |||
| curl_free_callback | f, | |||
| curl_realloc_callback | r, | |||
| curl_strdup_callback | s, | |||
| curl_calloc_callback | c | |||
| ) |
Definition at line 257 of file easy.c.
References curl_global_init(), CURLE_FAILED_INIT, and CURLE_OK.
| static void win32_cleanup | ( | void | ) | [static] |
| static CURLcode win32_init | ( | void | ) | [static] |
| curl_strdup_callback Curl_cstrdup = (curl_strdup_callback)system_strdup |
long init_flags [static] |
unsigned int initialized [static] |
1.5.6