32 #define LIBCURL_VERSION "7.11.1"
48 #define LIBCURL_VERSION_NUM 0x70B01
52 #define LIBCURL_VERSION_MAJOR 7
53 #define LIBCURL_VERSION_MINOR 11
54 #define LIBCURL_VERSION_PATCH 1
64 #if !__MACH__ && __MWERKS__
67 # include <sys/types.h>
86 #define CURL_FORMAT_OFF_T "%I64d"
88 #if (defined(__GNUC__) && defined(WIN32)) || defined(__WATCOMC__)
91 #define CURL_FORMAT_OFF_T "%I64d"
101 #ifndef _FILE_OFFSET_BITS
102 #define _FILE_OFFSET_BITS 0
103 #define UNDEF_FILE_OFFSET_BITS
106 #define FILESIZEBITS 0
107 #define UNDEF_FILESIZEBITS
110 #if defined(_LARGE_FILES) || (_FILE_OFFSET_BITS > 32) || (FILESIZEBITS > 32) \
111 || defined(_LARGEFILE_SOURCE) || defined(_LARGEFILE64_SOURCE)
114 #define CURL_FORMAT_OFF_T "%lld"
116 #define CURL_FORMAT_OFF_T "%ld"
121 #ifdef UNDEF_FILE_OFFSET_BITS
123 #undef _FILE_OFFSET_BITS
126 #ifdef UNDEF_FILESIZEBITS
145 #define HTTPPOST_FILENAME (1<<0)
146 #define HTTPPOST_READFILE (1<<1)
147 #define HTTPPOST_PTRNAME (1<<2)
149 #define HTTPPOST_PTRCONTENTS (1<<3)
151 #define HTTPPOST_BUFFER (1<<4)
152 #define HTTPPOST_PTRBUFFER (1<<5)
167 #define CURL_MAX_WRITE_SIZE 16384
286 #define CURLE_OPERATION_TIMEDOUT CURLE_OPERATION_TIMEOUTED
287 #define CURLE_HTTP_NOT_FOUND CURLE_HTTP_RETURNED_ERROR
295 #define CURLAUTH_NONE 0
296 #define CURLAUTH_BASIC (1<<0)
297 #define CURLAUTH_DIGEST (1<<1)
298 #define CURLAUTH_GSSNEGOTIATE (1<<2)
299 #define CURLAUTH_NTLM (1<<3)
300 #define CURLAUTH_ANY ~0
301 #define CURLAUTH_ANYSAFE (~CURLAUTH_BASIC)
306 #define CURLE_ALREADY_COMPLETE 99999
309 #define CURLE_FTP_PARTIAL_FILE CURLE_PARTIAL_FILE
310 #define CURLE_FTP_BAD_DOWNLOAD_RESUME CURLE_BAD_DOWNLOAD_RESUME
312 #define CURL_ERROR_SIZE 256
324 #define CURLOPTTYPE_LONG 0
325 #define CURLOPTTYPE_OBJECTPOINT 10000
326 #define CURLOPTTYPE_FUNCTIONPOINT 20000
327 #define CURLOPTTYPE_OFF_T 30000
342 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus) || \
343 defined(__HP_aCC) || defined(__BORLANDC__)
352 #define CINIT(name,type,number) CURLOPT_ ## name = CURLOPTTYPE_ ## type + number
355 #define LONG CURLOPTTYPE_LONG
356 #define OBJECTPOINT CURLOPTTYPE_OBJECTPOINT
357 #define FUNCTIONPOINT CURLOPTTYPE_FUNCTIONPOINT
358 #define OFF_T CURLOPTTYPE_OFF_T
359 #define CINIT(name,type,number) CURLOPT_name = type + number
737 CINIT(FTP_CREATE_MISSING_DIRS,
LONG, 110),
799 #define CURL_IPRESOLVE_WHATEVER 0
801 #define CURL_IPRESOLVE_V4 1
802 #define CURL_IPRESOLVE_V6 2
805 #define CURLOPT_WRITEDATA CURLOPT_FILE
806 #define CURLOPT_READDATA CURLOPT_INFILE
807 #define CURLOPT_HEADERDATA CURLOPT_WRITEHEADER
809 #ifndef CURL_NO_OLDIES
811 #define CURLOPT_HTTPREQUEST 0
812 #define CURLOPT_FTPASCII CURLOPT_TRANSFERTEXT
813 #define CURLOPT_MUTE 0
814 #define CURLOPT_PASSWDFUNCTION 0
815 #define CURLOPT_PASSWDDATA 0
816 #define CURLOPT_CLOSEFUNCTION 0
820 #define curl_formparse "curl_formparse is obsolete"
821 #undef CURLOPT_DNS_USE_GLOBAL_CACHE
869 #include <support/SupportDefs.h>
896 #define CFINIT(name) CURLFORM_ ## name
899 #define CFINIT(name) CURLFORM_name
1098 #define CURLINFO_STRING 0x100000
1099 #define CURLINFO_LONG 0x200000
1100 #define CURLINFO_DOUBLE 0x300000
1101 #define CURLINFO_MASK 0x0fffff
1102 #define CURLINFO_TYPEMASK 0xf00000
1137 #define CURLINFO_HTTP_CODE CURLINFO_RESPONSE_CODE
1151 #define CURL_GLOBAL_SSL (1<<0)
1152 #define CURL_GLOBAL_WIN32 (1<<1)
1153 #define CURL_GLOBAL_ALL (CURL_GLOBAL_SSL|CURL_GLOBAL_WIN32)
1154 #define CURL_GLOBAL_NOTHING 0
1155 #define CURL_GLOBAL_DEFAULT CURL_GLOBAL_ALL
1233 #define CURLVERSION_NOW CURLVERSION_SECOND
1252 #define CURL_VERSION_IPV6 (1<<0)
1253 #define CURL_VERSION_KERBEROS4 (1<<1)
1254 #define CURL_VERSION_SSL (1<<2)
1255 #define CURL_VERSION_LIBZ (1<<3)
1256 #define CURL_VERSION_NTLM (1<<4)
1257 #define CURL_VERSION_GSSNEGOTIATE (1<<5)
1258 #define CURL_VERSION_DEBUG (1<<6)
1259 #define CURL_VERSION_ASYNCHDNS (1<<7)
1260 #define CURL_VERSION_SPNEGO (1<<8)
1261 #define CURL_VERSION_LARGEFILE (1<<9)
CURLcode curl_global_init(long flags)
Globally initializes cURL given a bitwise set of the different features to initialize.
char * curl_unescape(const char *string, int length)
char * curl_getenv(const char *variable)
void(* curl_lock_function)(CURL *handle, curl_lock_data data, curl_lock_access locktype, void *userptr)
CURLFORMcode curl_formadd(struct curl_httppost **httppost, struct curl_httppost **last_post,...)
time_t curl_getdate(const char *p, const time_t *now)
GLuint GLuint GLsizei GLenum type
size_t(* curl_write_callback)(char *buffer, size_t size, size_t nitems, void *outstream)
CURLSHcode curl_share_setopt(CURLSH *, CURLSHoption option,...)
CURLSHcode curl_share_cleanup(CURLSH *)
int(* curl_debug_callback)(CURL *handle, curl_infotype type, char *data, size_t size, void *userptr)
void(* curl_unlock_function)(CURL *handle, curl_lock_data data, void *userptr)
struct curl_httppost * more
void curl_global_cleanup(void)
Globally cleanup cURL, uses the value of "init_flags" to determine what needs to be cleaned up and ...
const char * libz_version
GLsizei GLsizei GLenum GLenum const GLvoid * data
char * curl_escape(const char *string, int length)
int() curl_strnequal(const char *s1, const char *s2, size_t n)
void curl_formfree(struct curl_httppost *form)
curl_version_info_data * curl_version_info(CURLversion)
int(* curl_passwd_callback)(void *clientp, const char *prompt, char *buffer, int buflen)
char * curl_version(void)
struct curl_slist * curl_slist_append(struct curl_slist *, const char *)
#define CINIT(name, type, number)
struct curl_slist * contentheader
GLsizei const GLcharARB const GLint * length
struct curl_httppost * next
typedef void(APIENTRYP PFNGLBLENDCOLORPROC)(GLclampf red
int(* curl_progress_callback)(void *clientp, double dltotal, double dlnow, double ultotal, double ulnow)
CURLcode(* curl_ssl_ctx_callback)(CURL *curl, void *ssl_ctx, void *userptr)
void curl_slist_free_all(struct curl_slist *)
size_t(* curl_read_callback)(char *buffer, size_t size, size_t nitems, void *instream)
int() curl_strequal(const char *s1, const char *s2)
CURLSH * curl_share_init(void)