doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Macros | Typedefs | Enumerations | Functions
curl.h File Reference
#include <stdio.h>
#include <limits.h>
#include <sys/types.h>
#include <time.h>
#include "types.h"
#include "easy.h"
#include "multi.h"

Go to the source code of this file.

Classes

struct  curl_httppost
 
struct  curl_forms
 
struct  curl_slist
 
struct  curl_version_info_data
 

Macros

#define LIBCURL_VERSION   "7.11.1"
 
#define LIBCURL_VERSION_NUM   0x70B01
 
#define LIBCURL_VERSION_MAJOR   7
 
#define LIBCURL_VERSION_MINOR   11
 
#define LIBCURL_VERSION_PATCH   1
 
#define _FILE_OFFSET_BITS   0 /* to prevent warnings in the check below */
 
#define UNDEF_FILE_OFFSET_BITS
 
#define FILESIZEBITS   0 /* to prevent warnings in the check below */
 
#define UNDEF_FILESIZEBITS
 
#define CURL_FORMAT_OFF_T   "%ld"
 
#define HTTPPOST_FILENAME   (1<<0) /* specified content is a file name */
 
#define HTTPPOST_READFILE   (1<<1) /* specified content is a file name */
 
#define HTTPPOST_PTRNAME
 
#define HTTPPOST_PTRCONTENTS
 
#define HTTPPOST_BUFFER   (1<<4) /* upload file from buffer */
 
#define HTTPPOST_PTRBUFFER   (1<<5) /* upload file from pointer contents */
 
#define CURL_MAX_WRITE_SIZE   16384
 
#define CURLE_OPERATION_TIMEDOUT   CURLE_OPERATION_TIMEOUTED
 
#define CURLE_HTTP_NOT_FOUND   CURLE_HTTP_RETURNED_ERROR
 
#define CURLAUTH_NONE   0 /* nothing */
 
#define CURLAUTH_BASIC   (1<<0) /* Basic (default) */
 
#define CURLAUTH_DIGEST   (1<<1) /* Digest */
 
#define CURLAUTH_GSSNEGOTIATE   (1<<2) /* GSS-Negotiate */
 
#define CURLAUTH_NTLM   (1<<3) /* NTLM */
 
#define CURLAUTH_ANY   ~0 /* all types set */
 
#define CURLAUTH_ANYSAFE   (~CURLAUTH_BASIC)
 
#define CURLE_ALREADY_COMPLETE   99999
 
#define CURLE_FTP_PARTIAL_FILE   CURLE_PARTIAL_FILE
 
#define CURLE_FTP_BAD_DOWNLOAD_RESUME   CURLE_BAD_DOWNLOAD_RESUME
 
#define CURL_ERROR_SIZE   256
 
#define CURLOPTTYPE_LONG   0
 
#define CURLOPTTYPE_OBJECTPOINT   10000
 
#define CURLOPTTYPE_FUNCTIONPOINT   20000
 
#define CURLOPTTYPE_OFF_T   30000
 
#define LONG   CURLOPTTYPE_LONG
 
#define OBJECTPOINT   CURLOPTTYPE_OBJECTPOINT
 
#define FUNCTIONPOINT   CURLOPTTYPE_FUNCTIONPOINT
 
#define OFF_T   CURLOPTTYPE_OFF_T
 
#define CINIT(name, type, number)   CURLOPT_name = type + number
 
#define CURL_IPRESOLVE_WHATEVER
 
#define CURL_IPRESOLVE_V4   1 /* resolve to ipv4 addresses */
 
#define CURL_IPRESOLVE_V6   2 /* resolve to ipv6 addresses */
 
#define CURLOPT_WRITEDATA   CURLOPT_FILE
 
#define CURLOPT_READDATA   CURLOPT_INFILE
 
#define CURLOPT_HEADERDATA   CURLOPT_WRITEHEADER
 
#define CURLOPT_HTTPREQUEST   0
 
#define CURLOPT_FTPASCII   CURLOPT_TRANSFERTEXT
 
#define CURLOPT_MUTE   0
 
#define CURLOPT_PASSWDFUNCTION   0
 
#define CURLOPT_PASSWDDATA   0
 
#define CURLOPT_CLOSEFUNCTION   0
 
#define CFINIT(name)   CURLFORM_name
 
#define CURLINFO_STRING   0x100000
 
#define CURLINFO_LONG   0x200000
 
#define CURLINFO_DOUBLE   0x300000
 
#define CURLINFO_MASK   0x0fffff
 
#define CURLINFO_TYPEMASK   0xf00000
 
#define CURLINFO_HTTP_CODE   CURLINFO_RESPONSE_CODE
 
#define CURL_GLOBAL_SSL   (1<<0)
 
#define CURL_GLOBAL_WIN32   (1<<1)
 
#define CURL_GLOBAL_ALL   (CURL_GLOBAL_SSL|CURL_GLOBAL_WIN32)
 
#define CURL_GLOBAL_NOTHING   0
 
#define CURL_GLOBAL_DEFAULT   CURL_GLOBAL_ALL
 
#define CURLVERSION_NOW   CURLVERSION_SECOND
 
#define CURL_VERSION_IPV6   (1<<0)
 
#define CURL_VERSION_KERBEROS4   (1<<1)
 
#define CURL_VERSION_SSL   (1<<2)
 
#define CURL_VERSION_LIBZ   (1<<3)
 
#define CURL_VERSION_NTLM   (1<<4)
 
#define CURL_VERSION_GSSNEGOTIATE   (1<<5)
 
#define CURL_VERSION_DEBUG   (1<<6) /* built with debug capabilities */
 
#define CURL_VERSION_ASYNCHDNS   (1<<7)
 
#define CURL_VERSION_SPNEGO   (1<<8)
 
#define CURL_VERSION_LARGEFILE   (1<<9) /* supports files bigger than 2GB */
 

Typedefs

typedef off_t curl_off_t
 
typedef int(* curl_progress_callback )(void *clientp, double dltotal, double dlnow, double ultotal, double ulnow)
 
typedef size_t(* curl_write_callback )(char *buffer, size_t size, size_t nitems, void *outstream)
 
typedef size_t(* curl_read_callback )(char *buffer, size_t size, size_t nitems, void *instream)
 
typedef int(* curl_passwd_callback )(void *clientp, const char *prompt, char *buffer, int buflen)
 
typedef int(* curl_debug_callback )(CURL *handle, curl_infotype type, char *data, size_t size, void *userptr)
 
typedef CURLcode(* curl_ssl_ctx_callback )(CURL *curl, void *ssl_ctx, void *userptr)
 
typedef void(* curl_lock_function )(CURL *handle, curl_lock_data data, curl_lock_access locktype, void *userptr)
 
typedef void(* curl_unlock_function )(CURL *handle, curl_lock_data data, void *userptr)
 
typedef void CURLSH
 

Enumerations

enum  curl_infotype {
  CURLINFO_TEXT = 0, CURLINFO_HEADER_IN, CURLINFO_HEADER_OUT, CURLINFO_DATA_IN,
  CURLINFO_DATA_OUT, CURLINFO_END
}
 
enum  CURLcode {
  CURLE_OK = 0, CURLE_UNSUPPORTED_PROTOCOL, CURLE_FAILED_INIT, CURLE_URL_MALFORMAT,
  CURLE_URL_MALFORMAT_USER, CURLE_COULDNT_RESOLVE_PROXY, CURLE_COULDNT_RESOLVE_HOST, CURLE_COULDNT_CONNECT,
  CURLE_FTP_WEIRD_SERVER_REPLY, CURLE_FTP_ACCESS_DENIED, CURLE_FTP_USER_PASSWORD_INCORRECT, CURLE_FTP_WEIRD_PASS_REPLY,
  CURLE_FTP_WEIRD_USER_REPLY, CURLE_FTP_WEIRD_PASV_REPLY, CURLE_FTP_WEIRD_227_FORMAT, CURLE_FTP_CANT_GET_HOST,
  CURLE_FTP_CANT_RECONNECT, CURLE_FTP_COULDNT_SET_BINARY, CURLE_PARTIAL_FILE, CURLE_FTP_COULDNT_RETR_FILE,
  CURLE_FTP_WRITE_ERROR, CURLE_FTP_QUOTE_ERROR, CURLE_HTTP_RETURNED_ERROR, CURLE_WRITE_ERROR,
  CURLE_MALFORMAT_USER, CURLE_FTP_COULDNT_STOR_FILE, CURLE_READ_ERROR, CURLE_OUT_OF_MEMORY,
  CURLE_OPERATION_TIMEOUTED, CURLE_FTP_COULDNT_SET_ASCII, CURLE_FTP_PORT_FAILED, CURLE_FTP_COULDNT_USE_REST,
  CURLE_FTP_COULDNT_GET_SIZE, CURLE_HTTP_RANGE_ERROR, CURLE_HTTP_POST_ERROR, CURLE_SSL_CONNECT_ERROR,
  CURLE_BAD_DOWNLOAD_RESUME, CURLE_FILE_COULDNT_READ_FILE, CURLE_LDAP_CANNOT_BIND, CURLE_LDAP_SEARCH_FAILED,
  CURLE_LIBRARY_NOT_FOUND, CURLE_FUNCTION_NOT_FOUND, CURLE_ABORTED_BY_CALLBACK, CURLE_BAD_FUNCTION_ARGUMENT,
  CURLE_BAD_CALLING_ORDER, CURLE_HTTP_PORT_FAILED, CURLE_BAD_PASSWORD_ENTERED, CURLE_TOO_MANY_REDIRECTS,
  CURLE_UNKNOWN_TELNET_OPTION, CURLE_TELNET_OPTION_SYNTAX, CURLE_OBSOLETE, CURLE_SSL_PEER_CERTIFICATE,
  CURLE_GOT_NOTHING, CURLE_SSL_ENGINE_NOTFOUND, CURLE_SSL_ENGINE_SETFAILED, CURLE_SEND_ERROR,
  CURLE_RECV_ERROR, CURLE_SHARE_IN_USE, CURLE_SSL_CERTPROBLEM, CURLE_SSL_CIPHER,
  CURLE_SSL_CACERT, CURLE_BAD_CONTENT_ENCODING, CURLE_LDAP_INVALID_URL, CURLE_FILESIZE_EXCEEDED,
  CURLE_FTP_SSL_FAILED, CURL_LAST
}
 
enum  curl_proxytype { CURLPROXY_HTTP = 0, CURLPROXY_SOCKS4 = 4, CURLPROXY_SOCKS5 = 5 }
 
enum  curl_ftpssl {
  CURLFTPSSL_NONE, CURLFTPSSL_TRY, CURLFTPSSL_CONTROL, CURLFTPSSL_ALL,
  CURLFTPSSL_LAST
}
 
enum  CURLoption {
  CINIT =(FILE, OBJECTPOINT, 1), CINIT =(FILE, OBJECTPOINT, 1), CINIT =(FILE, OBJECTPOINT, 1), CINIT =(FILE, OBJECTPOINT, 1),
  CINIT =(FILE, OBJECTPOINT, 1), CINIT =(FILE, OBJECTPOINT, 1), CINIT =(FILE, OBJECTPOINT, 1), CINIT =(FILE, OBJECTPOINT, 1),
  CINIT =(FILE, OBJECTPOINT, 1), CINIT =(FILE, OBJECTPOINT, 1), CINIT =(FILE, OBJECTPOINT, 1), CINIT =(FILE, OBJECTPOINT, 1),
  CINIT =(FILE, OBJECTPOINT, 1), CINIT =(FILE, OBJECTPOINT, 1), CINIT =(FILE, OBJECTPOINT, 1), CINIT =(FILE, OBJECTPOINT, 1),
  CINIT =(FILE, OBJECTPOINT, 1), CINIT =(FILE, OBJECTPOINT, 1), CINIT =(FILE, OBJECTPOINT, 1), CINIT =(FILE, OBJECTPOINT, 1),
  CINIT =(FILE, OBJECTPOINT, 1), CINIT =(FILE, OBJECTPOINT, 1), CINIT =(FILE, OBJECTPOINT, 1), CINIT =(FILE, OBJECTPOINT, 1),
  CINIT =(FILE, OBJECTPOINT, 1), CINIT =(FILE, OBJECTPOINT, 1), CINIT =(FILE, OBJECTPOINT, 1), CINIT =(FILE, OBJECTPOINT, 1),
  CINIT =(FILE, OBJECTPOINT, 1), CINIT =(FILE, OBJECTPOINT, 1), CINIT =(FILE, OBJECTPOINT, 1), CINIT =(FILE, OBJECTPOINT, 1),
  CINIT =(FILE, OBJECTPOINT, 1), CINIT =(FILE, OBJECTPOINT, 1), CINIT =(FILE, OBJECTPOINT, 1), CINIT =(FILE, OBJECTPOINT, 1),
  CINIT =(FILE, OBJECTPOINT, 1), CINIT =(FILE, OBJECTPOINT, 1), CINIT =(FILE, OBJECTPOINT, 1), CINIT =(FILE, OBJECTPOINT, 1),
  CINIT =(FILE, OBJECTPOINT, 1), CINIT =(FILE, OBJECTPOINT, 1), CINIT =(FILE, OBJECTPOINT, 1), CINIT =(FILE, OBJECTPOINT, 1),
  CINIT =(FILE, OBJECTPOINT, 1), CINIT =(FILE, OBJECTPOINT, 1), CINIT =(FILE, OBJECTPOINT, 1), CINIT =(FILE, OBJECTPOINT, 1),
  CINIT =(FILE, OBJECTPOINT, 1), CINIT =(FILE, OBJECTPOINT, 1), CINIT =(FILE, OBJECTPOINT, 1), CINIT =(FILE, OBJECTPOINT, 1),
  CINIT =(FILE, OBJECTPOINT, 1), CINIT =(FILE, OBJECTPOINT, 1), CINIT =(FILE, OBJECTPOINT, 1), CINIT =(FILE, OBJECTPOINT, 1),
  CINIT =(FILE, OBJECTPOINT, 1), CINIT =(FILE, OBJECTPOINT, 1), CINIT =(FILE, OBJECTPOINT, 1), CINIT =(FILE, OBJECTPOINT, 1),
  CINIT =(FILE, OBJECTPOINT, 1), CINIT =(FILE, OBJECTPOINT, 1), CINIT =(FILE, OBJECTPOINT, 1), CINIT =(FILE, OBJECTPOINT, 1),
  CINIT =(FILE, OBJECTPOINT, 1), CINIT =(FILE, OBJECTPOINT, 1), CINIT =(FILE, OBJECTPOINT, 1), CINIT =(FILE, OBJECTPOINT, 1),
  CINIT =(FILE, OBJECTPOINT, 1), CINIT =(FILE, OBJECTPOINT, 1), CINIT =(FILE, OBJECTPOINT, 1), CINIT =(FILE, OBJECTPOINT, 1),
  CINIT =(FILE, OBJECTPOINT, 1), CINIT =(FILE, OBJECTPOINT, 1), CINIT =(FILE, OBJECTPOINT, 1), CINIT =(FILE, OBJECTPOINT, 1),
  CINIT =(FILE, OBJECTPOINT, 1), CINIT =(FILE, OBJECTPOINT, 1), CINIT =(FILE, OBJECTPOINT, 1), CINIT =(FILE, OBJECTPOINT, 1),
  CINIT =(FILE, OBJECTPOINT, 1), CINIT =(FILE, OBJECTPOINT, 1), CINIT =(FILE, OBJECTPOINT, 1), CINIT =(FILE, OBJECTPOINT, 1),
  CINIT =(FILE, OBJECTPOINT, 1), CINIT =(FILE, OBJECTPOINT, 1), CINIT =(FILE, OBJECTPOINT, 1), CINIT =(FILE, OBJECTPOINT, 1),
  CINIT =(FILE, OBJECTPOINT, 1), CINIT =(FILE, OBJECTPOINT, 1), CINIT =(FILE, OBJECTPOINT, 1), CINIT =(FILE, OBJECTPOINT, 1),
  CINIT =(FILE, OBJECTPOINT, 1), CINIT =(FILE, OBJECTPOINT, 1), CINIT =(FILE, OBJECTPOINT, 1), CINIT =(FILE, OBJECTPOINT, 1),
  CINIT =(FILE, OBJECTPOINT, 1), CINIT =(FILE, OBJECTPOINT, 1), CINIT =(FILE, OBJECTPOINT, 1), CINIT =(FILE, OBJECTPOINT, 1),
  CINIT =(FILE, OBJECTPOINT, 1), CINIT =(FILE, OBJECTPOINT, 1), CINIT =(FILE, OBJECTPOINT, 1), CINIT =(FILE, OBJECTPOINT, 1),
  CINIT =(FILE, OBJECTPOINT, 1), CINIT =(FILE, OBJECTPOINT, 1), CINIT =(FILE, OBJECTPOINT, 1), CINIT =(FILE, OBJECTPOINT, 1),
  CINIT =(FILE, OBJECTPOINT, 1), CINIT =(FILE, OBJECTPOINT, 1), CINIT =(FILE, OBJECTPOINT, 1), CINIT =(FILE, OBJECTPOINT, 1),
  CURLOPT_LASTENTRY
}
 
enum  { CURL_HTTP_VERSION_NONE, CURL_HTTP_VERSION_1_0, CURL_HTTP_VERSION_1_1, CURL_HTTP_VERSION_LAST }
 
enum  CURL_NETRC_OPTION { CURL_NETRC_IGNORED, CURL_NETRC_OPTIONAL, CURL_NETRC_REQUIRED, CURL_NETRC_LAST }
 
enum  {
  CURL_SSLVERSION_DEFAULT, CURL_SSLVERSION_TLSv1, CURL_SSLVERSION_SSLv2, CURL_SSLVERSION_SSLv3,
  CURL_SSLVERSION_LAST
}
 
enum  curl_TimeCond {
  CURL_TIMECOND_NONE, CURL_TIMECOND_IFMODSINCE, CURL_TIMECOND_IFUNMODSINCE, CURL_TIMECOND_LASTMOD,
  CURL_TIMECOND_LAST
}
 
enum  CURLformoption {
  CFINIT =(NOTHING), CFINIT =(NOTHING), CFINIT =(NOTHING), CFINIT =(NOTHING),
  CFINIT =(NOTHING), CFINIT =(NOTHING), CFINIT =(NOTHING), CFINIT =(NOTHING),
  CFINIT =(NOTHING), CFINIT =(NOTHING), CFINIT =(NOTHING), CFINIT =(NOTHING),
  CFINIT =(NOTHING), CFINIT =(NOTHING), CFINIT =(NOTHING), CFINIT =(NOTHING),
  CFINIT =(NOTHING), CFINIT =(NOTHING), CFINIT =(NOTHING), CURLFORM_LASTENTRY
}
 
enum  CURLFORMcode {
  CURL_FORMADD_OK, CURL_FORMADD_MEMORY, CURL_FORMADD_OPTION_TWICE, CURL_FORMADD_NULL,
  CURL_FORMADD_UNKNOWN_OPTION, CURL_FORMADD_INCOMPLETE, CURL_FORMADD_ILLEGAL_ARRAY, CURL_FORMADD_LAST
}
 
enum  CURLINFO {
  CURLINFO_NONE, CURLINFO_EFFECTIVE_URL = CURLINFO_STRING + 1, CURLINFO_RESPONSE_CODE = CURLINFO_LONG + 2, CURLINFO_TOTAL_TIME = CURLINFO_DOUBLE + 3,
  CURLINFO_NAMELOOKUP_TIME = CURLINFO_DOUBLE + 4, CURLINFO_CONNECT_TIME = CURLINFO_DOUBLE + 5, CURLINFO_PRETRANSFER_TIME = CURLINFO_DOUBLE + 6, CURLINFO_SIZE_UPLOAD = CURLINFO_DOUBLE + 7,
  CURLINFO_SIZE_DOWNLOAD = CURLINFO_DOUBLE + 8, CURLINFO_SPEED_DOWNLOAD = CURLINFO_DOUBLE + 9, CURLINFO_SPEED_UPLOAD = CURLINFO_DOUBLE + 10, CURLINFO_HEADER_SIZE = CURLINFO_LONG + 11,
  CURLINFO_REQUEST_SIZE = CURLINFO_LONG + 12, CURLINFO_SSL_VERIFYRESULT = CURLINFO_LONG + 13, CURLINFO_FILETIME = CURLINFO_LONG + 14, CURLINFO_CONTENT_LENGTH_DOWNLOAD = CURLINFO_DOUBLE + 15,
  CURLINFO_CONTENT_LENGTH_UPLOAD = CURLINFO_DOUBLE + 16, CURLINFO_STARTTRANSFER_TIME = CURLINFO_DOUBLE + 17, CURLINFO_CONTENT_TYPE = CURLINFO_STRING + 18, CURLINFO_REDIRECT_TIME = CURLINFO_DOUBLE + 19,
  CURLINFO_REDIRECT_COUNT = CURLINFO_LONG + 20, CURLINFO_PRIVATE = CURLINFO_STRING + 21, CURLINFO_HTTP_CONNECTCODE = CURLINFO_LONG + 22, CURLINFO_HTTPAUTH_AVAIL = CURLINFO_LONG + 23,
  CURLINFO_PROXYAUTH_AVAIL = CURLINFO_LONG + 24, CURLINFO_LASTONE = 23
}
 
enum  curl_closepolicy {
  CURLCLOSEPOLICY_NONE, CURLCLOSEPOLICY_OLDEST, CURLCLOSEPOLICY_LEAST_RECENTLY_USED, CURLCLOSEPOLICY_LEAST_TRAFFIC,
  CURLCLOSEPOLICY_SLOWEST, CURLCLOSEPOLICY_CALLBACK, CURLCLOSEPOLICY_LAST
}
 
enum  curl_lock_data {
  CURL_LOCK_DATA_NONE = 0, CURL_LOCK_DATA_SHARE, CURL_LOCK_DATA_COOKIE, CURL_LOCK_DATA_DNS,
  CURL_LOCK_DATA_SSL_SESSION, CURL_LOCK_DATA_CONNECT, CURL_LOCK_DATA_LAST
}
 
enum  curl_lock_access { CURL_LOCK_ACCESS_NONE = 0, CURL_LOCK_ACCESS_SHARED = 1, CURL_LOCK_ACCESS_SINGLE = 2, CURL_LOCK_ACCESS_LAST }
 
enum  CURLSHcode {
  CURLSHE_OK, CURLSHE_BAD_OPTION, CURLSHE_IN_USE, CURLSHE_INVALID,
  CURLSHE_LAST
}
 
enum  CURLSHoption {
  CURLSHOPT_NONE, CURLSHOPT_SHARE, CURLSHOPT_UNSHARE, CURLSHOPT_LOCKFUNC,
  CURLSHOPT_UNLOCKFUNC, CURLSHOPT_USERDATA, CURLSHOPT_LAST
}
 
enum  CURLversion { CURLVERSION_FIRST, CURLVERSION_SECOND, CURLVERSION_LAST }
 

Functions

int() curl_strequal (const char *s1, const char *s2)
 
int() curl_strnequal (const char *s1, const char *s2, size_t n)
 
CURLFORMcode curl_formadd (struct curl_httppost **httppost, struct curl_httppost **last_post,...)
 
void curl_formfree (struct curl_httppost *form)
 
char * curl_getenv (const char *variable)
 
char * curl_version (void)
 
char * curl_escape (const char *string, int length)
 
char * curl_unescape (const char *string, int length)
 
void curl_free (void *p)
 
CURLcode curl_global_init (long flags)
 Globally initializes cURL given a bitwise set of the different features to initialize. More...
 
void curl_global_cleanup (void)
 Globally cleanup cURL, uses the value of "init_flags" to determine what needs to be cleaned up and what doesn't. More...
 
struct curl_slistcurl_slist_append (struct curl_slist *, const char *)
 
void curl_slist_free_all (struct curl_slist *)
 
time_t curl_getdate (const char *p, const time_t *now)
 
CURLSHcurl_share_init (void)
 
CURLSHcode curl_share_setopt (CURLSH *, CURLSHoption option,...)
 
CURLSHcode curl_share_cleanup (CURLSH *)
 
curl_version_info_datacurl_version_info (CURLversion)
 

Macro Definition Documentation

#define _FILE_OFFSET_BITS   0 /* to prevent warnings in the check below */

Definition at line 102 of file curl.h.

#define CFINIT (   name)    CURLFORM_name

Definition at line 899 of file curl.h.

#define CINIT (   name,
  type,
  number 
)    CURLOPT_name = type + number

Definition at line 359 of file curl.h.

#define CURL_ERROR_SIZE   256

Definition at line 312 of file curl.h.

#define CURL_FORMAT_OFF_T   "%ld"

Definition at line 116 of file curl.h.

#define CURL_GLOBAL_ALL   (CURL_GLOBAL_SSL|CURL_GLOBAL_WIN32)

Definition at line 1153 of file curl.h.

#define CURL_GLOBAL_DEFAULT   CURL_GLOBAL_ALL

Definition at line 1155 of file curl.h.

#define CURL_GLOBAL_NOTHING   0

Definition at line 1154 of file curl.h.

#define CURL_GLOBAL_SSL   (1<<0)

Definition at line 1151 of file curl.h.

#define CURL_GLOBAL_WIN32   (1<<1)

Definition at line 1152 of file curl.h.

#define CURL_IPRESOLVE_V4   1 /* resolve to ipv4 addresses */

Definition at line 801 of file curl.h.

#define CURL_IPRESOLVE_V6   2 /* resolve to ipv6 addresses */

Definition at line 802 of file curl.h.

#define CURL_IPRESOLVE_WHATEVER
Value:
0 /* default, resolves addresses to all IP
versions that your system allows */

Definition at line 799 of file curl.h.

#define CURL_MAX_WRITE_SIZE   16384

Definition at line 167 of file curl.h.

#define CURL_VERSION_ASYNCHDNS   (1<<7)

Definition at line 1259 of file curl.h.

#define CURL_VERSION_DEBUG   (1<<6) /* built with debug capabilities */

Definition at line 1258 of file curl.h.

#define CURL_VERSION_GSSNEGOTIATE   (1<<5)

Definition at line 1257 of file curl.h.

#define CURL_VERSION_IPV6   (1<<0)

Definition at line 1252 of file curl.h.

#define CURL_VERSION_KERBEROS4   (1<<1)

Definition at line 1253 of file curl.h.

#define CURL_VERSION_LARGEFILE   (1<<9) /* supports files bigger than 2GB */

Definition at line 1261 of file curl.h.

#define CURL_VERSION_LIBZ   (1<<3)

Definition at line 1255 of file curl.h.

#define CURL_VERSION_NTLM   (1<<4)

Definition at line 1256 of file curl.h.

#define CURL_VERSION_SPNEGO   (1<<8)

Definition at line 1260 of file curl.h.

#define CURL_VERSION_SSL   (1<<2)

Definition at line 1254 of file curl.h.

#define CURLAUTH_ANY   ~0 /* all types set */

Definition at line 300 of file curl.h.

#define CURLAUTH_ANYSAFE   (~CURLAUTH_BASIC)

Definition at line 301 of file curl.h.

#define CURLAUTH_BASIC   (1<<0) /* Basic (default) */

Definition at line 296 of file curl.h.

#define CURLAUTH_DIGEST   (1<<1) /* Digest */

Definition at line 297 of file curl.h.

#define CURLAUTH_GSSNEGOTIATE   (1<<2) /* GSS-Negotiate */

Definition at line 298 of file curl.h.

#define CURLAUTH_NONE   0 /* nothing */

Definition at line 295 of file curl.h.

#define CURLAUTH_NTLM   (1<<3) /* NTLM */

Definition at line 299 of file curl.h.

#define CURLE_ALREADY_COMPLETE   99999

Definition at line 306 of file curl.h.

#define CURLE_FTP_BAD_DOWNLOAD_RESUME   CURLE_BAD_DOWNLOAD_RESUME

Definition at line 310 of file curl.h.

#define CURLE_FTP_PARTIAL_FILE   CURLE_PARTIAL_FILE

Definition at line 309 of file curl.h.

#define CURLE_HTTP_NOT_FOUND   CURLE_HTTP_RETURNED_ERROR

Definition at line 287 of file curl.h.

#define CURLE_OPERATION_TIMEDOUT   CURLE_OPERATION_TIMEOUTED

Definition at line 286 of file curl.h.

#define CURLINFO_DOUBLE   0x300000

Definition at line 1100 of file curl.h.

#define CURLINFO_HTTP_CODE   CURLINFO_RESPONSE_CODE

Definition at line 1137 of file curl.h.

#define CURLINFO_LONG   0x200000

Definition at line 1099 of file curl.h.

#define CURLINFO_MASK   0x0fffff

Definition at line 1101 of file curl.h.

#define CURLINFO_STRING   0x100000

Definition at line 1098 of file curl.h.

#define CURLINFO_TYPEMASK   0xf00000

Definition at line 1102 of file curl.h.

#define CURLOPT_CLOSEFUNCTION   0

Definition at line 816 of file curl.h.

#define CURLOPT_FTPASCII   CURLOPT_TRANSFERTEXT

Definition at line 812 of file curl.h.

#define CURLOPT_HEADERDATA   CURLOPT_WRITEHEADER

Definition at line 807 of file curl.h.

#define CURLOPT_HTTPREQUEST   0

Definition at line 811 of file curl.h.

#define CURLOPT_MUTE   0

Definition at line 813 of file curl.h.

#define CURLOPT_PASSWDDATA   0

Definition at line 815 of file curl.h.

#define CURLOPT_PASSWDFUNCTION   0

Definition at line 814 of file curl.h.

#define CURLOPT_READDATA   CURLOPT_INFILE

Definition at line 806 of file curl.h.

#define CURLOPT_WRITEDATA   CURLOPT_FILE

Definition at line 805 of file curl.h.

#define CURLOPTTYPE_FUNCTIONPOINT   20000

Definition at line 326 of file curl.h.

#define CURLOPTTYPE_LONG   0

Definition at line 324 of file curl.h.

#define CURLOPTTYPE_OBJECTPOINT   10000

Definition at line 325 of file curl.h.

#define CURLOPTTYPE_OFF_T   30000

Definition at line 327 of file curl.h.

#define CURLVERSION_NOW   CURLVERSION_SECOND

Definition at line 1233 of file curl.h.

#define FILESIZEBITS   0 /* to prevent warnings in the check below */

Definition at line 106 of file curl.h.

#define FUNCTIONPOINT   CURLOPTTYPE_FUNCTIONPOINT

Definition at line 357 of file curl.h.

#define HTTPPOST_BUFFER   (1<<4) /* upload file from buffer */

Definition at line 151 of file curl.h.

#define HTTPPOST_FILENAME   (1<<0) /* specified content is a file name */

Definition at line 145 of file curl.h.

#define HTTPPOST_PTRBUFFER   (1<<5) /* upload file from pointer contents */

Definition at line 152 of file curl.h.

#define HTTPPOST_PTRCONTENTS
Value:
(1<<3) /* contents is only stored pointer
do not free in formfree */

Definition at line 149 of file curl.h.

#define HTTPPOST_PTRNAME
Value:
(1<<2) /* name is only stored pointer
do not free in formfree */

Definition at line 147 of file curl.h.

#define HTTPPOST_READFILE   (1<<1) /* specified content is a file name */

Definition at line 146 of file curl.h.

#define LIBCURL_VERSION   "7.11.1"

Definition at line 32 of file curl.h.

#define LIBCURL_VERSION_MAJOR   7

Definition at line 52 of file curl.h.

#define LIBCURL_VERSION_MINOR   11

Definition at line 53 of file curl.h.

#define LIBCURL_VERSION_NUM   0x70B01

Definition at line 48 of file curl.h.

#define LIBCURL_VERSION_PATCH   1

Definition at line 54 of file curl.h.

#define LONG   CURLOPTTYPE_LONG

Definition at line 355 of file curl.h.

#define OBJECTPOINT   CURLOPTTYPE_OBJECTPOINT

Definition at line 356 of file curl.h.

#define OFF_T   CURLOPTTYPE_OFF_T

Definition at line 358 of file curl.h.

#define UNDEF_FILE_OFFSET_BITS

Definition at line 103 of file curl.h.

#define UNDEF_FILESIZEBITS

Definition at line 107 of file curl.h.

Typedef Documentation

typedef int(* curl_debug_callback)(CURL *handle,curl_infotype type,char *data,size_t size,void *userptr)

Definition at line 196 of file curl.h.

typedef void(* curl_lock_function)(CURL *handle, curl_lock_data data, curl_lock_access locktype, void *userptr)

Definition at line 1185 of file curl.h.

typedef off_t curl_off_t

Definition at line 96 of file curl.h.

typedef int(* curl_passwd_callback)(void *clientp, const char *prompt, char *buffer, int buflen)

Definition at line 180 of file curl.h.

typedef int(* curl_progress_callback)(void *clientp, double dltotal, double dlnow, double ultotal, double ulnow)

Definition at line 159 of file curl.h.

typedef size_t(* curl_read_callback)(char *buffer, size_t size, size_t nitems, void *instream)

Definition at line 174 of file curl.h.

typedef CURLcode(* curl_ssl_ctx_callback)(CURL *curl,void *ssl_ctx,void *userptr)

Definition at line 280 of file curl.h.

typedef void(* curl_unlock_function)(CURL *handle, curl_lock_data data, void *userptr)

Definition at line 1189 of file curl.h.

typedef size_t(* curl_write_callback)(char *buffer, size_t size, size_t nitems, void *outstream)

Definition at line 169 of file curl.h.

typedef void CURLSH

Definition at line 1193 of file curl.h.

Enumeration Type Documentation

anonymous enum
Enumerator
CURL_HTTP_VERSION_NONE 
CURL_HTTP_VERSION_1_0 
CURL_HTTP_VERSION_1_1 
CURL_HTTP_VERSION_LAST 

Definition at line 826 of file curl.h.

anonymous enum
Enumerator
CURL_SSLVERSION_DEFAULT 
CURL_SSLVERSION_TLSv1 
CURL_SSLVERSION_SSLv2 
CURL_SSLVERSION_SSLv3 
CURL_SSLVERSION_LAST 

Definition at line 848 of file curl.h.

Enumerator
CURLCLOSEPOLICY_NONE 
CURLCLOSEPOLICY_OLDEST 
CURLCLOSEPOLICY_LEAST_RECENTLY_USED 
CURLCLOSEPOLICY_LEAST_TRAFFIC 
CURLCLOSEPOLICY_SLOWEST 
CURLCLOSEPOLICY_CALLBACK 
CURLCLOSEPOLICY_LAST 

Definition at line 1139 of file curl.h.

Enumerator
CURLFTPSSL_NONE 
CURLFTPSSL_TRY 
CURLFTPSSL_CONTROL 
CURLFTPSSL_ALL 
CURLFTPSSL_LAST 

Definition at line 314 of file curl.h.

Enumerator
CURLINFO_TEXT 
CURLINFO_HEADER_IN 
CURLINFO_HEADER_OUT 
CURLINFO_DATA_IN 
CURLINFO_DATA_OUT 
CURLINFO_END 

Definition at line 186 of file curl.h.

Enumerator
CURL_LOCK_ACCESS_NONE 
CURL_LOCK_ACCESS_SHARED 
CURL_LOCK_ACCESS_SINGLE 
CURL_LOCK_ACCESS_LAST 

Definition at line 1178 of file curl.h.

Enumerator
CURL_LOCK_DATA_NONE 
CURL_LOCK_DATA_SHARE 
CURL_LOCK_DATA_COOKIE 
CURL_LOCK_DATA_DNS 
CURL_LOCK_DATA_SSL_SESSION 
CURL_LOCK_DATA_CONNECT 
CURL_LOCK_DATA_LAST 

Definition at line 1163 of file curl.h.

Enumerator
CURL_NETRC_IGNORED 
CURL_NETRC_OPTIONAL 
CURL_NETRC_REQUIRED 
CURL_NETRC_LAST 

Definition at line 837 of file curl.h.

Enumerator
CURLPROXY_HTTP 
CURLPROXY_SOCKS4 
CURLPROXY_SOCKS5 

Definition at line 289 of file curl.h.

Enumerator
CURL_TIMECOND_NONE 
CURL_TIMECOND_IFMODSINCE 
CURL_TIMECOND_IFUNMODSINCE 
CURL_TIMECOND_LASTMOD 
CURL_TIMECOND_LAST 

Definition at line 858 of file curl.h.

enum CURLcode
Enumerator
CURLE_OK 
CURLE_UNSUPPORTED_PROTOCOL 
CURLE_FAILED_INIT 
CURLE_URL_MALFORMAT 
CURLE_URL_MALFORMAT_USER 
CURLE_COULDNT_RESOLVE_PROXY 
CURLE_COULDNT_RESOLVE_HOST 
CURLE_COULDNT_CONNECT 
CURLE_FTP_WEIRD_SERVER_REPLY 
CURLE_FTP_ACCESS_DENIED 
CURLE_FTP_USER_PASSWORD_INCORRECT 
CURLE_FTP_WEIRD_PASS_REPLY 
CURLE_FTP_WEIRD_USER_REPLY 
CURLE_FTP_WEIRD_PASV_REPLY 
CURLE_FTP_WEIRD_227_FORMAT 
CURLE_FTP_CANT_GET_HOST 
CURLE_FTP_CANT_RECONNECT 
CURLE_FTP_COULDNT_SET_BINARY 
CURLE_PARTIAL_FILE 
CURLE_FTP_COULDNT_RETR_FILE 
CURLE_FTP_WRITE_ERROR 
CURLE_FTP_QUOTE_ERROR 
CURLE_HTTP_RETURNED_ERROR 
CURLE_WRITE_ERROR 
CURLE_MALFORMAT_USER 
CURLE_FTP_COULDNT_STOR_FILE 
CURLE_READ_ERROR 
CURLE_OUT_OF_MEMORY 
CURLE_OPERATION_TIMEOUTED 
CURLE_FTP_COULDNT_SET_ASCII 
CURLE_FTP_PORT_FAILED 
CURLE_FTP_COULDNT_USE_REST 
CURLE_FTP_COULDNT_GET_SIZE 
CURLE_HTTP_RANGE_ERROR 
CURLE_HTTP_POST_ERROR 
CURLE_SSL_CONNECT_ERROR 
CURLE_BAD_DOWNLOAD_RESUME 
CURLE_FILE_COULDNT_READ_FILE 
CURLE_LDAP_CANNOT_BIND 
CURLE_LDAP_SEARCH_FAILED 
CURLE_LIBRARY_NOT_FOUND 
CURLE_FUNCTION_NOT_FOUND 
CURLE_ABORTED_BY_CALLBACK 
CURLE_BAD_FUNCTION_ARGUMENT 
CURLE_BAD_CALLING_ORDER 
CURLE_HTTP_PORT_FAILED 
CURLE_BAD_PASSWORD_ENTERED 
CURLE_TOO_MANY_REDIRECTS 
CURLE_UNKNOWN_TELNET_OPTION 
CURLE_TELNET_OPTION_SYNTAX 
CURLE_OBSOLETE 
CURLE_SSL_PEER_CERTIFICATE 
CURLE_GOT_NOTHING 
CURLE_SSL_ENGINE_NOTFOUND 
CURLE_SSL_ENGINE_SETFAILED 
CURLE_SEND_ERROR 
CURLE_RECV_ERROR 
CURLE_SHARE_IN_USE 
CURLE_SSL_CERTPROBLEM 
CURLE_SSL_CIPHER 
CURLE_SSL_CACERT 
CURLE_BAD_CONTENT_ENCODING 
CURLE_LDAP_INVALID_URL 
CURLE_FILESIZE_EXCEEDED 
CURLE_FTP_SSL_FAILED 
CURL_LAST 

Definition at line 209 of file curl.h.

Enumerator
CURL_FORMADD_OK 
CURL_FORMADD_MEMORY 
CURL_FORMADD_OPTION_TWICE 
CURL_FORMADD_NULL 
CURL_FORMADD_UNKNOWN_OPTION 
CURL_FORMADD_INCOMPLETE 
CURL_FORMADD_ILLEGAL_ARRAY 
CURL_FORMADD_LAST 

Definition at line 954 of file curl.h.

Enumerator
CFINIT 
CFINIT 
CFINIT 
CFINIT 
CFINIT 
CFINIT 
CFINIT 
CFINIT 
CFINIT 
CFINIT 
CFINIT 
CFINIT 
CFINIT 
CFINIT 
CFINIT 
CFINIT 
CFINIT 
CFINIT 
CFINIT 
CURLFORM_LASTENTRY 

Definition at line 902 of file curl.h.

enum CURLINFO
Enumerator
CURLINFO_NONE 
CURLINFO_EFFECTIVE_URL 
CURLINFO_RESPONSE_CODE 
CURLINFO_TOTAL_TIME 
CURLINFO_NAMELOOKUP_TIME 
CURLINFO_CONNECT_TIME 
CURLINFO_PRETRANSFER_TIME 
CURLINFO_SIZE_UPLOAD 
CURLINFO_SIZE_DOWNLOAD 
CURLINFO_SPEED_DOWNLOAD 
CURLINFO_SPEED_UPLOAD 
CURLINFO_HEADER_SIZE 
CURLINFO_REQUEST_SIZE 
CURLINFO_SSL_VERIFYRESULT 
CURLINFO_FILETIME 
CURLINFO_CONTENT_LENGTH_DOWNLOAD 
CURLINFO_CONTENT_LENGTH_UPLOAD 
CURLINFO_STARTTRANSFER_TIME 
CURLINFO_CONTENT_TYPE 
CURLINFO_REDIRECT_TIME 
CURLINFO_REDIRECT_COUNT 
CURLINFO_PRIVATE 
CURLINFO_HTTP_CONNECTCODE 
CURLINFO_HTTPAUTH_AVAIL 
CURLINFO_PROXYAUTH_AVAIL 
CURLINFO_LASTONE 

Definition at line 1104 of file curl.h.

enum CURLoption
Enumerator
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CINIT 
CURLOPT_LASTENTRY 

Definition at line 368 of file curl.h.

enum CURLSHcode
Enumerator
CURLSHE_OK 
CURLSHE_BAD_OPTION 
CURLSHE_IN_USE 
CURLSHE_INVALID 
CURLSHE_LAST 

Definition at line 1195 of file curl.h.

Enumerator
CURLSHOPT_NONE 
CURLSHOPT_SHARE 
CURLSHOPT_UNSHARE 
CURLSHOPT_LOCKFUNC 
CURLSHOPT_UNLOCKFUNC 
CURLSHOPT_USERDATA 
CURLSHOPT_LAST 

Definition at line 1203 of file curl.h.

Enumerator
CURLVERSION_FIRST 
CURLVERSION_SECOND 
CURLVERSION_LAST 

Definition at line 1222 of file curl.h.

Function Documentation

char* curl_escape ( const char *  string,
int  length 
)

Definition at line 40 of file escape.c.

CURLFORMcode curl_formadd ( struct curl_httppost **  httppost,
struct curl_httppost **  last_post,
  ... 
)

Definition at line 978 of file formdata.c.

void curl_formfree ( struct curl_httppost form)

Definition at line 1073 of file formdata.c.

void curl_free ( void p)

Definition at line 125 of file escape.c.

time_t curl_getdate ( const char *  p,
const time_t *  now 
)

Definition at line 1991 of file getdate.c.

char* curl_getenv ( const char *  variable)

Definition at line 68 of file getenv.c.

void curl_global_cleanup ( void  )

Globally cleanup cURL, uses the value of "init_flags" to determine what needs to be cleaned up and what doesn't.

Definition at line 174 of file easy.c.

CURLcode curl_global_init ( long  flags)

Globally initializes cURL given a bitwise set of the different features to initialize.

Definition at line 147 of file easy.c.

CURLSHcode curl_share_cleanup ( CURLSH )

Definition at line 151 of file share.c.

CURLSH* curl_share_init ( void  )

Definition at line 38 of file share.c.

CURLSHcode curl_share_setopt ( CURLSH ,
CURLSHoption  option,
  ... 
)

Definition at line 51 of file share.c.

struct curl_slist* curl_slist_append ( struct curl_slist ,
const char *   
)

Definition at line 82 of file sendf.c.

void curl_slist_free_all ( struct curl_slist )

Definition at line 108 of file sendf.c.

int() curl_strequal ( const char *  s1,
const char *  s2 
)

Definition at line 37 of file strequal.c.

int() curl_strnequal ( const char *  s1,
const char *  s2,
size_t  n 
)

Definition at line 57 of file strequal.c.

char* curl_unescape ( const char *  string,
int  length 
)

Definition at line 86 of file escape.c.

char* curl_version ( void  )

Definition at line 94 of file version.c.

curl_version_info_data* curl_version_info ( CURLversion  )

Definition at line 213 of file version.c.