Planeshift
Classes | Defines | Typedefs | Enumerations | Functions

curl.h File Reference

#include "third_party/curl/curlver.h"
#include "third_party/curl/curlbuild.h"
#include "third_party/curl/curlrules.h"
#include <stdio.h>
#include <limits.h>
#include <sys/types.h>
#include <time.h>
#include <sys/socket.h>
#include <sys/time.h>
#include "easy.h"
#include "multi.h"

Go to the source code of this file.

Classes

struct  curl_certinfo
struct  curl_forms
struct  curl_httppost
struct  curl_khkey
struct  curl_slist
struct  curl_sockaddr
struct  curl_version_info_data

Defines

#define CFINIT(name)   CURLFORM_name
#define CINIT(name, type, number)   CURLOPT_name = type + number
#define CURL_ERROR_SIZE   256
#define CURL_EXTERN
#define curl_ftpssl   curl_usessl
#define CURL_GLOBAL_ALL   (CURL_GLOBAL_SSL|CURL_GLOBAL_WIN32)
#define CURL_GLOBAL_DEFAULT   CURL_GLOBAL_ALL
#define CURL_GLOBAL_NOTHING   0
#define CURL_GLOBAL_SSL   (1<<0)
#define CURL_GLOBAL_WIN32   (1<<1)
#define CURL_IPRESOLVE_V4   1
#define CURL_IPRESOLVE_V6   2
#define CURL_IPRESOLVE_WHATEVER   0
#define CURL_MAX_HTTP_HEADER   (100*1024)
#define CURL_MAX_WRITE_SIZE   16384
#define CURL_READFUNC_ABORT   0x10000000
#define CURL_READFUNC_PAUSE   0x10000001
#define CURL_REDIR_GET_ALL   0
#define CURL_REDIR_POST_301   1
#define CURL_REDIR_POST_302   2
#define CURL_REDIR_POST_ALL   (CURL_REDIR_POST_301|CURL_REDIR_POST_302)
#define CURL_SEEKFUNC_CANTSEEK   2
#define CURL_SEEKFUNC_FAIL   1
#define CURL_SEEKFUNC_OK   0
#define CURL_SOCKET_BAD   -1
#define curl_socket_typedef
#define CURL_VERSION_ASYNCHDNS   (1<<7)
#define CURL_VERSION_CONV   (1<<12)
#define CURL_VERSION_CURLDEBUG   (1<<13)
#define CURL_VERSION_DEBUG   (1<<6)
#define CURL_VERSION_GSSNEGOTIATE   (1<<5)
#define CURL_VERSION_IDN   (1<<10)
#define CURL_VERSION_IPV6   (1<<0)
#define CURL_VERSION_KERBEROS4   (1<<1)
#define CURL_VERSION_LARGEFILE   (1<<9)
#define CURL_VERSION_LIBZ   (1<<3)
#define CURL_VERSION_NTLM   (1<<4)
#define CURL_VERSION_SPNEGO   (1<<8)
#define CURL_VERSION_SSL   (1<<2)
#define CURL_VERSION_SSPI   (1<<11)
#define CURL_WRITEFUNC_PAUSE   0x10000001
#define CURLAUTH_ANY   (~CURLAUTH_DIGEST_IE)
#define CURLAUTH_ANYSAFE   (~(CURLAUTH_BASIC|CURLAUTH_DIGEST_IE))
#define CURLAUTH_BASIC   (1<<0)
#define CURLAUTH_DIGEST   (1<<1)
#define CURLAUTH_DIGEST_IE   (1<<4)
#define CURLAUTH_GSSNEGOTIATE   (1<<2)
#define CURLAUTH_NONE   0
#define CURLAUTH_NTLM   (1<<3)
#define CURLE_ALREADY_COMPLETE   99999
#define CURLE_BAD_CALLING_ORDER   CURLE_OBSOLETE44
#define CURLE_BAD_PASSWORD_ENTERED   CURLE_OBSOLETE46
#define CURLE_FTP_ACCESS_DENIED   CURLE_REMOTE_ACCESS_DENIED
#define CURLE_FTP_BAD_DOWNLOAD_RESUME   CURLE_BAD_DOWNLOAD_RESUME
#define CURLE_FTP_CANT_RECONNECT   CURLE_OBSOLETE16
#define CURLE_FTP_COULDNT_GET_SIZE   CURLE_OBSOLETE32
#define CURLE_FTP_COULDNT_SET_ASCII   CURLE_OBSOLETE29
#define CURLE_FTP_COULDNT_SET_BINARY   CURLE_FTP_COULDNT_SET_TYPE
#define CURLE_FTP_COULDNT_STOR_FILE   CURLE_UPLOAD_FAILED
#define CURLE_FTP_PARTIAL_FILE   CURLE_PARTIAL_FILE
#define CURLE_FTP_QUOTE_ERROR   CURLE_QUOTE_ERROR
#define CURLE_FTP_SSL_FAILED   CURLE_USE_SSL_FAILED
#define CURLE_FTP_USER_PASSWORD_INCORRECT   CURLE_OBSOLETE10
#define CURLE_FTP_WEIRD_USER_REPLY   CURLE_OBSOLETE12
#define CURLE_FTP_WRITE_ERROR   CURLE_OBSOLETE20
#define CURLE_HTTP_NOT_FOUND   CURLE_HTTP_RETURNED_ERROR
#define CURLE_HTTP_PORT_FAILED   CURLE_INTERFACE_FAILED
#define CURLE_HTTP_RANGE_ERROR   CURLE_RANGE_ERROR
#define CURLE_LIBRARY_NOT_FOUND   CURLE_OBSOLETE40
#define CURLE_MALFORMAT_USER   CURLE_OBSOLETE24
#define CURLE_OBSOLETE   CURLE_OBSOLETE50
#define CURLE_OPERATION_TIMEOUTED   CURLE_OPERATION_TIMEDOUT
#define CURLE_SHARE_IN_USE   CURLE_OBSOLETE57
#define CURLE_SSL_PEER_CERTIFICATE   CURLE_PEER_FAILED_VERIFICATION
#define CURLE_TFTP_DISKFULL   CURLE_REMOTE_DISK_FULL
#define CURLE_TFTP_EXISTS   CURLE_REMOTE_FILE_EXISTS
#define CURLE_URL_MALFORMAT_USER   CURLE_OBSOLETE4
#define CURLFTPSSL_ALL   CURLUSESSL_ALL
#define CURLFTPSSL_CONTROL   CURLUSESSL_CONTROL
#define CURLFTPSSL_LAST   CURLUSESSL_LAST
#define CURLFTPSSL_NONE   CURLUSESSL_NONE
#define CURLFTPSSL_TRY   CURLUSESSL_TRY
#define CURLINFO_DOUBLE   0x300000
#define CURLINFO_HTTP_CODE   CURLINFO_RESPONSE_CODE
#define CURLINFO_LONG   0x200000
#define CURLINFO_MASK   0x0fffff
#define CURLINFO_SLIST   0x400000
#define CURLINFO_STRING   0x100000
#define CURLINFO_TYPEMASK   0xf00000
#define CURLOPT_FTP_SSL   CURLOPT_USE_SSL
#define CURLOPT_FTPAPPEND   CURLOPT_APPEND
#define CURLOPT_FTPLISTONLY   CURLOPT_DIRLISTONLY
#define CURLOPT_HEADERDATA   CURLOPT_WRITEHEADER
#define CURLOPT_KRB4LEVEL   CURLOPT_KRBLEVEL
#define CURLOPT_POST301   CURLOPT_POSTREDIR
#define CURLOPT_READDATA   CURLOPT_INFILE
#define CURLOPT_SSLCERTPASSWD   CURLOPT_KEYPASSWD
#define CURLOPT_SSLKEYPASSWD   CURLOPT_KEYPASSWD
#define CURLOPT_WRITEDATA   CURLOPT_FILE
#define CURLOPTTYPE_FUNCTIONPOINT   20000
#define CURLOPTTYPE_LONG   0
#define CURLOPTTYPE_OBJECTPOINT   10000
#define CURLOPTTYPE_OFF_T   30000
#define CURLPAUSE_ALL   (CURLPAUSE_RECV|CURLPAUSE_SEND)
#define CURLPAUSE_CONT   (CURLPAUSE_RECV_CONT|CURLPAUSE_SEND_CONT)
#define CURLPAUSE_RECV   (1<<0)
#define CURLPAUSE_RECV_CONT   (0)
#define CURLPAUSE_SEND   (1<<2)
#define CURLPAUSE_SEND_CONT   (0)
#define CURLPROTO_ALL   (~0)
#define CURLPROTO_DICT   (1<<9)
#define CURLPROTO_FILE   (1<<10)
#define CURLPROTO_FTP   (1<<2)
#define CURLPROTO_FTPS   (1<<3)
#define CURLPROTO_HTTP   (1<<0)
#define CURLPROTO_HTTPS   (1<<1)
#define CURLPROTO_LDAP   (1<<7)
#define CURLPROTO_LDAPS   (1<<8)
#define CURLPROTO_SCP   (1<<4)
#define CURLPROTO_SFTP   (1<<5)
#define CURLPROTO_TELNET   (1<<6)
#define CURLPROTO_TFTP   (1<<11)
#define CURLSSH_AUTH_ANY   ~0
#define CURLSSH_AUTH_DEFAULT   CURLSSH_AUTH_ANY
#define CURLSSH_AUTH_HOST   (1<<2)
#define CURLSSH_AUTH_KEYBOARD   (1<<3)
#define CURLSSH_AUTH_NONE   0
#define CURLSSH_AUTH_PASSWORD   (1<<1)
#define CURLSSH_AUTH_PUBLICKEY   (1<<0)
#define CURLVERSION_NOW   CURLVERSION_FOURTH
#define FUNCTIONPOINT   CURLOPTTYPE_FUNCTIONPOINT
#define HTTPPOST_BUFFER   (1<<4)
#define HTTPPOST_CALLBACK   (1<<6)
#define HTTPPOST_FILENAME   (1<<0)
#define HTTPPOST_PTRBUFFER   (1<<5)
#define HTTPPOST_PTRCONTENTS   (1<<3)
#define HTTPPOST_PTRNAME   (1<<2)
#define HTTPPOST_READFILE   (1<<1)
#define LONG   CURLOPTTYPE_LONG
#define OBJECTPOINT   CURLOPTTYPE_OBJECTPOINT
#define OFF_T   CURLOPTTYPE_OFF_T

Typedefs

typedef void CURL
typedef void *(* curl_calloc_callback )(size_t nmemb, size_t size)
typedef CURLcode(* curl_conv_callback )(char *buffer, size_t length)
 CURL_NO_OLDIES.
typedef int(* curl_debug_callback )(CURL *handle, curl_infotype type, char *data, size_t size, void *userptr)
typedef size_t(* curl_formget_callback )(void *arg, const char *buf, size_t len)
typedef void(* curl_free_callback )(void *ptr)
typedef curlioerr(* curl_ioctl_callback )(CURL *handle, int cmd, void *clientp)
typedef void(* curl_lock_function )(CURL *handle, curl_lock_data data, curl_lock_access locktype, void *userptr)
typedef void *(* curl_malloc_callback )(size_t size)
typedef curl_socket_t(* curl_opensocket_callback )(void *clientp, curlsocktype purpose, struct curl_sockaddr *address)
typedef int(* curl_passwd_callback )(void *clientp, const char *prompt, char *buffer, int buflen)
typedef int(* curl_progress_callback )(void *clientp, double dltotal, double dlnow, double ultotal, double ulnow)
typedef size_t(* curl_read_callback )(char *buffer, size_t size, size_t nitems, void *instream)
typedef void *(* curl_realloc_callback )(void *ptr, size_t size)
typedef int(* curl_seek_callback )(void *instream, curl_off_t offset, int origin)
typedef int curl_socket_t
typedef int(* curl_sockopt_callback )(void *clientp, curl_socket_t curlfd, curlsocktype purpose)
typedef int(* curl_sshkeycallback )(CURL *easy, const struct curl_khkey *knownkey, const struct curl_khkey *foundkey, enum curl_khmatch, void *clientp)
typedef CURLcode(* curl_ssl_ctx_callback )(CURL *curl, void *ssl_ctx, void *userptr)
typedef char *(* curl_strdup_callback )(const char *str)
typedef void(* curl_unlock_function )(CURL *handle, curl_lock_data data, void *userptr)
typedef size_t(* curl_write_callback )(char *buffer, size_t size, size_t nitems, void *outstream)
typedef void CURLSH

Enumerations

enum  { CURL_HTTP_VERSION_NONE, CURL_HTTP_VERSION_1_0, CURL_HTTP_VERSION_1_1, CURL_HTTP_VERSION_LAST }
enum  {
  CURL_SSLVERSION_DEFAULT, CURL_SSLVERSION_TLSv1, CURL_SSLVERSION_SSLv2, CURL_SSLVERSION_SSLv3,
  CURL_SSLVERSION_LAST
}
enum  curl_closepolicy {
  CURLCLOSEPOLICY_NONE, CURLCLOSEPOLICY_OLDEST, CURLCLOSEPOLICY_LEAST_RECENTLY_USED, CURLCLOSEPOLICY_LEAST_TRAFFIC,
  CURLCLOSEPOLICY_SLOWEST, CURLCLOSEPOLICY_CALLBACK, CURLCLOSEPOLICY_LAST
}
enum  curl_ftpauth { CURLFTPAUTH_DEFAULT, CURLFTPAUTH_SSL, CURLFTPAUTH_TLS, CURLFTPAUTH_LAST }
enum  curl_ftpccc { CURLFTPSSL_CCC_NONE, CURLFTPSSL_CCC_PASSIVE, CURLFTPSSL_CCC_ACTIVE, CURLFTPSSL_CCC_LAST }
 

CURL_NO_OLDIES.

More...
enum  curl_ftpcreatedir { CURLFTP_CREATE_DIR_NONE, CURLFTP_CREATE_DIR, CURLFTP_CREATE_DIR_RETRY, CURLFTP_CREATE_DIR_LAST }
enum  curl_ftpmethod {
  CURLFTPMETHOD_DEFAULT, CURLFTPMETHOD_MULTICWD, CURLFTPMETHOD_NOCWD, CURLFTPMETHOD_SINGLECWD,
  CURLFTPMETHOD_LAST
}
enum  curl_infotype {
  CURLINFO_TEXT = 0, CURLINFO_HEADER_IN, CURLINFO_HEADER_OUT, CURLINFO_DATA_IN,
  CURLINFO_DATA_OUT, CURLINFO_SSL_DATA_IN, CURLINFO_SSL_DATA_OUT, CURLINFO_END
}
enum  curl_khmatch { CURLKHMATCH_OK, CURLKHMATCH_MISMATCH, CURLKHMATCH_MISSING, CURLKHMATCH_LAST }
enum  curl_khstat {
  CURLKHSTAT_FINE_ADD_TO_FILE, CURLKHSTAT_FINE, CURLKHSTAT_REJECT, CURLKHSTAT_DEFER,
  CURLKHSTAT_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  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_NETRC_OPTION { CURL_NETRC_IGNORED, CURL_NETRC_OPTIONAL, CURL_NETRC_REQUIRED, CURL_NETRC_LAST }
enum  curl_proxytype {
  CURLPROXY_HTTP = 0, CURLPROXY_HTTP_1_0 = 1, CURLPROXY_SOCKS4 = 4, CURLPROXY_SOCKS5 = 5,
  CURLPROXY_SOCKS4A = 6, CURLPROXY_SOCKS5_HOSTNAME = 7
}
enum  curl_TimeCond {
  CURL_TIMECOND_NONE, CURL_TIMECOND_IFMODSINCE, CURL_TIMECOND_IFUNMODSINCE, CURL_TIMECOND_LASTMOD,
  CURL_TIMECOND_LAST
}
enum  curl_usessl {
  CURLUSESSL_NONE, CURLUSESSL_TRY, CURLUSESSL_CONTROL, CURLUSESSL_ALL,
  CURLUSESSL_LAST
}
enum  CURLcode {
  CURLE_OK = 0, CURLE_UNSUPPORTED_PROTOCOL, CURLE_FAILED_INIT, CURLE_URL_MALFORMAT,
  CURLE_OBSOLETE4, CURLE_COULDNT_RESOLVE_PROXY, CURLE_COULDNT_RESOLVE_HOST, CURLE_COULDNT_CONNECT,
  CURLE_FTP_WEIRD_SERVER_REPLY, CURLE_REMOTE_ACCESS_DENIED, CURLE_OBSOLETE10, CURLE_FTP_WEIRD_PASS_REPLY,
  CURLE_OBSOLETE12, CURLE_FTP_WEIRD_PASV_REPLY, CURLE_FTP_WEIRD_227_FORMAT, CURLE_FTP_CANT_GET_HOST,
  CURLE_OBSOLETE16, CURLE_FTP_COULDNT_SET_TYPE, CURLE_PARTIAL_FILE, CURLE_FTP_COULDNT_RETR_FILE,
  CURLE_OBSOLETE20, CURLE_QUOTE_ERROR, CURLE_HTTP_RETURNED_ERROR, CURLE_WRITE_ERROR,
  CURLE_OBSOLETE24, CURLE_UPLOAD_FAILED, CURLE_READ_ERROR, CURLE_OUT_OF_MEMORY,
  CURLE_OPERATION_TIMEDOUT, CURLE_OBSOLETE29, CURLE_FTP_PORT_FAILED, CURLE_FTP_COULDNT_USE_REST,
  CURLE_OBSOLETE32, CURLE_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_OBSOLETE40, CURLE_FUNCTION_NOT_FOUND, CURLE_ABORTED_BY_CALLBACK, CURLE_BAD_FUNCTION_ARGUMENT,
  CURLE_OBSOLETE44, CURLE_INTERFACE_FAILED, CURLE_OBSOLETE46, CURLE_TOO_MANY_REDIRECTS,
  CURLE_UNKNOWN_TELNET_OPTION, CURLE_TELNET_OPTION_SYNTAX, CURLE_OBSOLETE50, CURLE_PEER_FAILED_VERIFICATION,
  CURLE_GOT_NOTHING, CURLE_SSL_ENGINE_NOTFOUND, CURLE_SSL_ENGINE_SETFAILED, CURLE_SEND_ERROR,
  CURLE_RECV_ERROR, CURLE_OBSOLETE57, CURLE_SSL_CERTPROBLEM, CURLE_SSL_CIPHER,
  CURLE_SSL_CACERT, CURLE_BAD_CONTENT_ENCODING, CURLE_LDAP_INVALID_URL, CURLE_FILESIZE_EXCEEDED,
  CURLE_USE_SSL_FAILED, CURLE_SEND_FAIL_REWIND, CURLE_SSL_ENGINE_INITFAILED, CURLE_LOGIN_DENIED,
  CURLE_TFTP_NOTFOUND, CURLE_TFTP_PERM, CURLE_REMOTE_DISK_FULL, CURLE_TFTP_ILLEGAL,
  CURLE_TFTP_UNKNOWNID, CURLE_REMOTE_FILE_EXISTS, CURLE_TFTP_NOSUCHUSER, CURLE_CONV_FAILED,
  CURLE_CONV_REQD, CURLE_SSL_CACERT_BADFILE, CURLE_REMOTE_FILE_NOT_FOUND, CURLE_SSH,
  CURLE_SSL_SHUTDOWN_FAILED, CURLE_AGAIN, CURLE_SSL_CRL_BADFILE, CURLE_SSL_ISSUER_ERROR,
  CURL_LAST
}
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_DISABLED,
  CURL_FORMADD_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), CFINIT = (NOTHING),
  CURLFORM_LASTENTRY
}
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_OS_ERRNO = CURLINFO_LONG + 25, CURLINFO_NUM_CONNECTS = CURLINFO_LONG + 26, CURLINFO_SSL_ENGINES = CURLINFO_SLIST + 27,
  CURLINFO_COOKIELIST = CURLINFO_SLIST + 28, CURLINFO_LASTSOCKET = CURLINFO_LONG + 29, CURLINFO_FTP_ENTRY_PATH = CURLINFO_STRING + 30, CURLINFO_REDIRECT_URL = CURLINFO_STRING + 31,
  CURLINFO_PRIMARY_IP = CURLINFO_STRING + 32, CURLINFO_APPCONNECT_TIME = CURLINFO_DOUBLE + 33, CURLINFO_CERTINFO = CURLINFO_SLIST + 34, CURLINFO_CONDITION_UNMET = CURLINFO_LONG + 35,
  CURLINFO_LASTONE = 35
}
enum  curliocmd { CURLIOCMD_NOP, CURLIOCMD_RESTARTREAD, CURLIOCMD_LAST }
enum  curlioerr { CURLIOE_OK, CURLIOE_UNKNOWNCMD, CURLIOE_FAILRESTART, CURLIOE_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),
  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  CURLSHcode {
  CURLSHE_OK, CURLSHE_BAD_OPTION, CURLSHE_IN_USE, CURLSHE_INVALID,
  CURLSHE_NOMEM, CURLSHE_LAST
}
enum  CURLSHoption {
  CURLSHOPT_NONE, CURLSHOPT_SHARE, CURLSHOPT_UNSHARE, CURLSHOPT_LOCKFUNC,
  CURLSHOPT_UNLOCKFUNC, CURLSHOPT_USERDATA, CURLSHOPT_LAST
}
enum  curlsocktype { CURLSOCKTYPE_IPCXN, CURLSOCKTYPE_LAST }
enum  CURLversion {
  CURLVERSION_FIRST, CURLVERSION_SECOND, CURLVERSION_THIRD, CURLVERSION_FOURTH,
  CURLVERSION_LAST
}

Functions

CURL_EXTERN char * curl_easy_escape (CURL *handle, const char *string, int length)
CURL_EXTERN CURLcode curl_easy_pause (CURL *handle, int bitmask)
CURL_EXTERN const char * curl_easy_strerror (CURLcode)
CURL_EXTERN char * curl_easy_unescape (CURL *handle, const char *string, int length, int *outlength)
CURL_EXTERN char * curl_escape (const char *string, int length)
CURL_EXTERN CURLFORMcode curl_formadd (struct curl_httppost **httppost, struct curl_httppost **last_post,...)
CURL_EXTERN void curl_formfree (struct curl_httppost *form)
CURL_EXTERN int curl_formget (struct curl_httppost *form, void *arg, curl_formget_callback append)
CURL_EXTERN void curl_free (void *p)
CURL_EXTERN time_t curl_getdate (const char *p, const time_t *unused)
CURL_EXTERN char * curl_getenv (const char *variable)
CURL_EXTERN void curl_global_cleanup (void)
CURL_EXTERN CURLcode curl_global_init (long flags)
CURL_EXTERN 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)
CURL_EXTERN CURLSHcode curl_share_cleanup (CURLSH *)
CURL_EXTERN CURLSHcurl_share_init (void)
CURL_EXTERN CURLSHcode curl_share_setopt (CURLSH *, CURLSHoption option,...)
CURL_EXTERN const char * curl_share_strerror (CURLSHcode)
CURL_EXTERN struct curl_slistcurl_slist_append (struct curl_slist *, const char *)
CURL_EXTERN void curl_slist_free_all (struct curl_slist *)
CURL_EXTERN int() curl_strequal (const char *s1, const char *s2)
CURL_EXTERN int() curl_strnequal (const char *s1, const char *s2, size_t n)
CURL_EXTERN char * curl_unescape (const char *string, int length)
CURL_EXTERN char * curl_version (void)
CURL_EXTERN
curl_version_info_data
curl_version_info (CURLversion)

Define Documentation

#define CFINIT (   name)    CURLFORM_name

Definition at line 1393 of file curl.h.

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

Definition at line 648 of file curl.h.

#define CURL_ERROR_SIZE   256

Definition at line 511 of file curl.h.

#define CURL_EXTERN

Definition at line 122 of file curl.h.

#define curl_ftpssl   curl_usessl

Definition at line 572 of file curl.h.

#define CURL_GLOBAL_ALL   (CURL_GLOBAL_SSL|CURL_GLOBAL_WIN32)

Definition at line 1730 of file curl.h.

#define CURL_GLOBAL_DEFAULT   CURL_GLOBAL_ALL

Definition at line 1732 of file curl.h.

#define CURL_GLOBAL_NOTHING   0

Definition at line 1731 of file curl.h.

#define CURL_GLOBAL_SSL   (1<<0)

Definition at line 1728 of file curl.h.

#define CURL_GLOBAL_WIN32   (1<<1)

Definition at line 1729 of file curl.h.

#define CURL_IPRESOLVE_V4   1

Definition at line 1319 of file curl.h.

#define CURL_IPRESOLVE_V6   2

Definition at line 1320 of file curl.h.

#define CURL_IPRESOLVE_WHATEVER   0

Definition at line 1317 of file curl.h.

#define CURL_MAX_HTTP_HEADER   (100*1024)

Definition at line 190 of file curl.h.

#define CURL_MAX_WRITE_SIZE   16384

Definition at line 183 of file curl.h.

#define CURL_READFUNC_ABORT   0x10000000

Definition at line 213 of file curl.h.

#define CURL_READFUNC_PAUSE   0x10000001

Definition at line 216 of file curl.h.

#define CURL_REDIR_GET_ALL   0

Definition at line 1363 of file curl.h.

#define CURL_REDIR_POST_301   1

Definition at line 1364 of file curl.h.

#define CURL_REDIR_POST_302   2

Definition at line 1365 of file curl.h.

#define CURL_REDIR_POST_ALL   (CURL_REDIR_POST_301|CURL_REDIR_POST_302)

Definition at line 1366 of file curl.h.

#define CURL_SEEKFUNC_CANTSEEK   2

Definition at line 205 of file curl.h.

#define CURL_SEEKFUNC_FAIL   1

Definition at line 204 of file curl.h.

#define CURL_SEEKFUNC_OK   0

Definition at line 203 of file curl.h.

#define CURL_SOCKET_BAD   -1

Definition at line 133 of file curl.h.

#define curl_socket_typedef

Definition at line 135 of file curl.h.

#define CURL_VERSION_ASYNCHDNS   (1<<7)

Definition at line 1850 of file curl.h.

#define CURL_VERSION_CONV   (1<<12)

Definition at line 1855 of file curl.h.

#define CURL_VERSION_CURLDEBUG   (1<<13)

Definition at line 1856 of file curl.h.

#define CURL_VERSION_DEBUG   (1<<6)

Definition at line 1849 of file curl.h.

#define CURL_VERSION_GSSNEGOTIATE   (1<<5)

Definition at line 1848 of file curl.h.

#define CURL_VERSION_IDN   (1<<10)

Definition at line 1853 of file curl.h.

#define CURL_VERSION_IPV6   (1<<0)

Definition at line 1843 of file curl.h.

#define CURL_VERSION_KERBEROS4   (1<<1)

Definition at line 1844 of file curl.h.

#define CURL_VERSION_LARGEFILE   (1<<9)

Definition at line 1852 of file curl.h.

#define CURL_VERSION_LIBZ   (1<<3)

Definition at line 1846 of file curl.h.

#define CURL_VERSION_NTLM   (1<<4)

Definition at line 1847 of file curl.h.

#define CURL_VERSION_SPNEGO   (1<<8)

Definition at line 1851 of file curl.h.

#define CURL_VERSION_SSL   (1<<2)

Definition at line 1845 of file curl.h.

#define CURL_VERSION_SSPI   (1<<11)

Definition at line 1854 of file curl.h.

#define CURL_WRITEFUNC_PAUSE   0x10000001

Definition at line 196 of file curl.h.

#define CURLAUTH_ANY   (~CURLAUTH_DIGEST_IE)

Definition at line 500 of file curl.h.

#define CURLAUTH_ANYSAFE   (~(CURLAUTH_BASIC|CURLAUTH_DIGEST_IE))

Definition at line 501 of file curl.h.

#define CURLAUTH_BASIC   (1<<0)

Definition at line 495 of file curl.h.

#define CURLAUTH_DIGEST   (1<<1)

Definition at line 496 of file curl.h.

#define CURLAUTH_DIGEST_IE   (1<<4)

Definition at line 499 of file curl.h.

#define CURLAUTH_GSSNEGOTIATE   (1<<2)

Definition at line 497 of file curl.h.

#define CURLAUTH_NONE   0

Definition at line 494 of file curl.h.

#define CURLAUTH_NTLM   (1<<3)

Definition at line 498 of file curl.h.

#define CURLE_ALREADY_COMPLETE   99999

Definition at line 468 of file curl.h.

#define CURLE_BAD_CALLING_ORDER   CURLE_OBSOLETE44

Definition at line 434 of file curl.h.

#define CURLE_BAD_PASSWORD_ENTERED   CURLE_OBSOLETE46

Definition at line 433 of file curl.h.

#define CURLE_FTP_ACCESS_DENIED   CURLE_REMOTE_ACCESS_DENIED

Definition at line 446 of file curl.h.

#define CURLE_FTP_BAD_DOWNLOAD_RESUME   CURLE_BAD_DOWNLOAD_RESUME

Definition at line 463 of file curl.h.

#define CURLE_FTP_CANT_RECONNECT   CURLE_OBSOLETE16

Definition at line 436 of file curl.h.

#define CURLE_FTP_COULDNT_GET_SIZE   CURLE_OBSOLETE32

Definition at line 437 of file curl.h.

#define CURLE_FTP_COULDNT_SET_ASCII   CURLE_OBSOLETE29

Definition at line 438 of file curl.h.

#define CURLE_FTP_COULDNT_SET_BINARY   CURLE_FTP_COULDNT_SET_TYPE

Definition at line 447 of file curl.h.

#define CURLE_FTP_COULDNT_STOR_FILE   CURLE_UPLOAD_FAILED

Definition at line 460 of file curl.h.

#define CURLE_FTP_PARTIAL_FILE   CURLE_PARTIAL_FILE

Definition at line 462 of file curl.h.

#define CURLE_FTP_QUOTE_ERROR   CURLE_QUOTE_ERROR

Definition at line 448 of file curl.h.

#define CURLE_FTP_SSL_FAILED   CURLE_USE_SSL_FAILED

Definition at line 452 of file curl.h.

#define CURLE_FTP_USER_PASSWORD_INCORRECT   CURLE_OBSOLETE10

Definition at line 435 of file curl.h.

#define CURLE_FTP_WEIRD_USER_REPLY   CURLE_OBSOLETE12

Definition at line 439 of file curl.h.

#define CURLE_FTP_WRITE_ERROR   CURLE_OBSOLETE20

Definition at line 440 of file curl.h.

#define CURLE_HTTP_NOT_FOUND   CURLE_HTTP_RETURNED_ERROR

Definition at line 458 of file curl.h.

#define CURLE_HTTP_PORT_FAILED   CURLE_INTERFACE_FAILED

Definition at line 459 of file curl.h.

#define CURLE_HTTP_RANGE_ERROR   CURLE_RANGE_ERROR

Definition at line 451 of file curl.h.

#define CURLE_LIBRARY_NOT_FOUND   CURLE_OBSOLETE40

Definition at line 441 of file curl.h.

#define CURLE_MALFORMAT_USER   CURLE_OBSOLETE24

Definition at line 442 of file curl.h.

#define CURLE_OBSOLETE   CURLE_OBSOLETE50

Definition at line 432 of file curl.h.

#define CURLE_OPERATION_TIMEOUTED   CURLE_OPERATION_TIMEDOUT

Definition at line 456 of file curl.h.

#define CURLE_SHARE_IN_USE   CURLE_OBSOLETE57

Definition at line 443 of file curl.h.

#define CURLE_SSL_PEER_CERTIFICATE   CURLE_PEER_FAILED_VERIFICATION

Definition at line 428 of file curl.h.

#define CURLE_TFTP_DISKFULL   CURLE_REMOTE_DISK_FULL

Definition at line 449 of file curl.h.

#define CURLE_TFTP_EXISTS   CURLE_REMOTE_FILE_EXISTS

Definition at line 450 of file curl.h.

#define CURLE_URL_MALFORMAT_USER   CURLE_OBSOLETE4

Definition at line 444 of file curl.h.

#define CURLFTPSSL_ALL   CURLUSESSL_ALL

Definition at line 570 of file curl.h.

#define CURLFTPSSL_CONTROL   CURLUSESSL_CONTROL

Definition at line 569 of file curl.h.

#define CURLFTPSSL_LAST   CURLUSESSL_LAST

Definition at line 571 of file curl.h.

#define CURLFTPSSL_NONE   CURLUSESSL_NONE

Definition at line 567 of file curl.h.

#define CURLFTPSSL_TRY   CURLUSESSL_TRY

Definition at line 568 of file curl.h.

#define CURLINFO_DOUBLE   0x300000

Definition at line 1665 of file curl.h.

#define CURLINFO_HTTP_CODE   CURLINFO_RESPONSE_CODE

Definition at line 1714 of file curl.h.

#define CURLINFO_LONG   0x200000

Definition at line 1664 of file curl.h.

#define CURLINFO_MASK   0x0fffff

Definition at line 1667 of file curl.h.

#define CURLINFO_SLIST   0x400000

Definition at line 1666 of file curl.h.

#define CURLINFO_STRING   0x100000

Definition at line 1663 of file curl.h.

#define CURLINFO_TYPEMASK   0xf00000

Definition at line 1668 of file curl.h.

#define CURLOPT_FTP_SSL   CURLOPT_USE_SSL

Definition at line 1301 of file curl.h.

#define CURLOPT_FTPAPPEND   CURLOPT_APPEND

Definition at line 1299 of file curl.h.

#define CURLOPT_FTPLISTONLY   CURLOPT_DIRLISTONLY

Definition at line 1300 of file curl.h.

#define CURLOPT_HEADERDATA   CURLOPT_WRITEHEADER

Definition at line 1325 of file curl.h.

#define CURLOPT_KRB4LEVEL   CURLOPT_KRBLEVEL

Definition at line 1306 of file curl.h.

#define CURLOPT_POST301   CURLOPT_POSTREDIR

Definition at line 1293 of file curl.h.

#define CURLOPT_READDATA   CURLOPT_INFILE

Definition at line 1324 of file curl.h.

#define CURLOPT_SSLCERTPASSWD   CURLOPT_KEYPASSWD

Definition at line 1305 of file curl.h.

#define CURLOPT_SSLKEYPASSWD   CURLOPT_KEYPASSWD

Definition at line 1298 of file curl.h.

#define CURLOPT_WRITEDATA   CURLOPT_FILE

Definition at line 1323 of file curl.h.

#define CURLOPTTYPE_FUNCTIONPOINT   20000

Definition at line 630 of file curl.h.

#define CURLOPTTYPE_LONG   0

Definition at line 628 of file curl.h.

#define CURLOPTTYPE_OBJECTPOINT   10000

Definition at line 629 of file curl.h.

#define CURLOPTTYPE_OFF_T   30000

Definition at line 631 of file curl.h.

#define CURLPAUSE_ALL   (CURLPAUSE_RECV|CURLPAUSE_SEND)

Definition at line 1907 of file curl.h.

#define CURLPAUSE_CONT   (CURLPAUSE_RECV_CONT|CURLPAUSE_SEND_CONT)

Definition at line 1908 of file curl.h.

#define CURLPAUSE_RECV   (1<<0)

Definition at line 1901 of file curl.h.

#define CURLPAUSE_RECV_CONT   (0)

Definition at line 1902 of file curl.h.

#define CURLPAUSE_SEND   (1<<2)

Definition at line 1904 of file curl.h.

#define CURLPAUSE_SEND_CONT   (0)

Definition at line 1905 of file curl.h.

#define CURLPROTO_ALL   (~0)

Definition at line 624 of file curl.h.

#define CURLPROTO_DICT   (1<<9)

Definition at line 621 of file curl.h.

#define CURLPROTO_FILE   (1<<10)

Definition at line 622 of file curl.h.

#define CURLPROTO_FTP   (1<<2)

Definition at line 614 of file curl.h.

#define CURLPROTO_FTPS   (1<<3)

Definition at line 615 of file curl.h.

#define CURLPROTO_HTTP   (1<<0)

Definition at line 612 of file curl.h.

#define CURLPROTO_HTTPS   (1<<1)

Definition at line 613 of file curl.h.

#define CURLPROTO_LDAP   (1<<7)

Definition at line 619 of file curl.h.

#define CURLPROTO_LDAPS   (1<<8)

Definition at line 620 of file curl.h.

#define CURLPROTO_SCP   (1<<4)

Definition at line 616 of file curl.h.

#define CURLPROTO_SFTP   (1<<5)

Definition at line 617 of file curl.h.

#define CURLPROTO_TELNET   (1<<6)

Definition at line 618 of file curl.h.

#define CURLPROTO_TFTP   (1<<11)

Definition at line 623 of file curl.h.

#define CURLSSH_AUTH_ANY   ~0

Definition at line 503 of file curl.h.

#define CURLSSH_AUTH_DEFAULT   CURLSSH_AUTH_ANY

Definition at line 509 of file curl.h.

#define CURLSSH_AUTH_HOST   (1<<2)

Definition at line 507 of file curl.h.

#define CURLSSH_AUTH_KEYBOARD   (1<<3)

Definition at line 508 of file curl.h.

#define CURLSSH_AUTH_NONE   0

Definition at line 504 of file curl.h.

#define CURLSSH_AUTH_PASSWORD   (1<<1)

Definition at line 506 of file curl.h.

#define CURLSSH_AUTH_PUBLICKEY   (1<<0)

Definition at line 505 of file curl.h.

#define CURLVERSION_NOW   CURLVERSION_FOURTH

Definition at line 1813 of file curl.h.

#define FUNCTIONPOINT   CURLOPTTYPE_FUNCTIONPOINT

Definition at line 646 of file curl.h.

#define HTTPPOST_BUFFER   (1<<4)

Definition at line 158 of file curl.h.

#define HTTPPOST_CALLBACK   (1<<6)

Definition at line 160 of file curl.h.

#define HTTPPOST_FILENAME   (1<<0)

Definition at line 152 of file curl.h.

#define HTTPPOST_PTRBUFFER   (1<<5)

Definition at line 159 of file curl.h.

#define HTTPPOST_PTRCONTENTS   (1<<3)

Definition at line 156 of file curl.h.

#define HTTPPOST_PTRNAME   (1<<2)

Definition at line 154 of file curl.h.

#define HTTPPOST_READFILE   (1<<1)

Definition at line 153 of file curl.h.

#define LONG   CURLOPTTYPE_LONG

Definition at line 644 of file curl.h.

#define OBJECTPOINT   CURLOPTTYPE_OBJECTPOINT

Definition at line 645 of file curl.h.

#define OFF_T   CURLOPTTYPE_OFF_T

Definition at line 647 of file curl.h.


Typedef Documentation

typedef void CURL

Definition at line 98 of file curl.h.

typedef void*(* curl_calloc_callback)(size_t nmemb, size_t size)

Definition at line 282 of file curl.h.

typedef CURLcode(* curl_conv_callback)(char *buffer, size_t length)

CURL_NO_OLDIES.

Definition at line 473 of file curl.h.

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

Definition at line 297 of file curl.h.

typedef size_t(* curl_formget_callback)(void *arg, const char *buf, size_t len)

Definition at line 1485 of file curl.h.

typedef void(* curl_free_callback)(void *ptr)

Definition at line 279 of file curl.h.

typedef curlioerr(* curl_ioctl_callback)(CURL *handle, int cmd, void *clientp)

Definition at line 268 of file curl.h.

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

Definition at line 1762 of file curl.h.

typedef void*(* curl_malloc_callback)(size_t size)

Definition at line 278 of file curl.h.

typedef curl_socket_t(* curl_opensocket_callback)(void *clientp, curlsocktype purpose, struct curl_sockaddr *address)

Definition at line 243 of file curl.h.

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

Definition at line 249 of file curl.h.

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

Definition at line 172 of file curl.h.

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

Definition at line 218 of file curl.h.

typedef void*(* curl_realloc_callback)(void *ptr, size_t size)

Definition at line 280 of file curl.h.

typedef int(* curl_seek_callback)(void *instream, curl_off_t offset, int origin)

Definition at line 207 of file curl.h.

typedef int curl_socket_t

Definition at line 132 of file curl.h.

typedef int(* curl_sockopt_callback)(void *clientp, curl_socket_t curlfd, curlsocktype purpose)

Definition at line 228 of file curl.h.

typedef int(* curl_sshkeycallback)(CURL *easy,const struct curl_khkey *knownkey,const struct curl_khkey *foundkey,enum curl_khmatch,void *clientp)

Definition at line 546 of file curl.h.

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

Definition at line 475 of file curl.h.

typedef char*(* curl_strdup_callback)(const char *str)

Definition at line 281 of file curl.h.

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

Definition at line 1766 of file curl.h.

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

Definition at line 197 of file curl.h.

typedef void CURLSH

Definition at line 1770 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 1328 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 1350 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 1716 of file curl.h.

Enumerator:
CURLFTPAUTH_DEFAULT 
CURLFTPAUTH_SSL 
CURLFTPAUTH_TLS 
CURLFTPAUTH_LAST 

Definition at line 584 of file curl.h.

CURL_NO_OLDIES.

Enumerator:
CURLFTPSSL_CCC_NONE 
CURLFTPSSL_CCC_PASSIVE 
CURLFTPSSL_CCC_ACTIVE 
CURLFTPSSL_CCC_LAST 

Definition at line 576 of file curl.h.

Enumerator:
CURLFTP_CREATE_DIR_NONE 
CURLFTP_CREATE_DIR 
CURLFTP_CREATE_DIR_RETRY 
CURLFTP_CREATE_DIR_LAST 

Definition at line 592 of file curl.h.

Enumerator:
CURLFTPMETHOD_DEFAULT 
CURLFTPMETHOD_MULTICWD 
CURLFTPMETHOD_NOCWD 
CURLFTPMETHOD_SINGLECWD 
CURLFTPMETHOD_LAST 

Definition at line 603 of file curl.h.

Enumerator:
CURLINFO_TEXT 
CURLINFO_HEADER_IN 
CURLINFO_HEADER_OUT 
CURLINFO_DATA_IN 
CURLINFO_DATA_OUT 
CURLINFO_SSL_DATA_IN 
CURLINFO_SSL_DATA_OUT 
CURLINFO_END 

Definition at line 285 of file curl.h.

Enumerator:
CURLKHMATCH_OK 
CURLKHMATCH_MISMATCH 
CURLKHMATCH_MISSING 
CURLKHMATCH_LAST 

Definition at line 538 of file curl.h.

Enumerator:
CURLKHSTAT_FINE_ADD_TO_FILE 
CURLKHSTAT_FINE 
CURLKHSTAT_REJECT 
CURLKHSTAT_DEFER 
CURLKHSTAT_LAST 

Definition at line 527 of file curl.h.

Enumerator:
CURL_LOCK_ACCESS_NONE 
CURL_LOCK_ACCESS_SHARED 
CURL_LOCK_ACCESS_SINGLE 
CURL_LOCK_ACCESS_LAST 

Definition at line 1755 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 1740 of file curl.h.

Enumerator:
CURL_NETRC_IGNORED 
CURL_NETRC_OPTIONAL 
CURL_NETRC_REQUIRED 
CURL_NETRC_LAST 

Definition at line 1339 of file curl.h.

Enumerator:
CURLPROXY_HTTP 
CURLPROXY_HTTP_1_0 
CURLPROXY_SOCKS4 
CURLPROXY_SOCKS5 
CURLPROXY_SOCKS4A 
CURLPROXY_SOCKS5_HOSTNAME 

Definition at line 480 of file curl.h.

Enumerator:
CURL_TIMECOND_NONE 
CURL_TIMECOND_IFMODSINCE 
CURL_TIMECOND_IFUNMODSINCE 
CURL_TIMECOND_LASTMOD 
CURL_TIMECOND_LAST 

Definition at line 1368 of file curl.h.

Enumerator:
CURLUSESSL_NONE 
CURLUSESSL_TRY 
CURLUSESSL_CONTROL 
CURLUSESSL_ALL 
CURLUSESSL_LAST 

Definition at line 553 of file curl.h.

enum CURLcode
Enumerator:
CURLE_OK 
CURLE_UNSUPPORTED_PROTOCOL 
CURLE_FAILED_INIT 
CURLE_URL_MALFORMAT 
CURLE_OBSOLETE4 
CURLE_COULDNT_RESOLVE_PROXY 
CURLE_COULDNT_RESOLVE_HOST 
CURLE_COULDNT_CONNECT 
CURLE_FTP_WEIRD_SERVER_REPLY 
CURLE_REMOTE_ACCESS_DENIED 
CURLE_OBSOLETE10 
CURLE_FTP_WEIRD_PASS_REPLY 
CURLE_OBSOLETE12 
CURLE_FTP_WEIRD_PASV_REPLY 
CURLE_FTP_WEIRD_227_FORMAT 
CURLE_FTP_CANT_GET_HOST 
CURLE_OBSOLETE16 
CURLE_FTP_COULDNT_SET_TYPE 
CURLE_PARTIAL_FILE 
CURLE_FTP_COULDNT_RETR_FILE 
CURLE_OBSOLETE20 
CURLE_QUOTE_ERROR 
CURLE_HTTP_RETURNED_ERROR 
CURLE_WRITE_ERROR 
CURLE_OBSOLETE24 
CURLE_UPLOAD_FAILED 
CURLE_READ_ERROR 
CURLE_OUT_OF_MEMORY 
CURLE_OPERATION_TIMEDOUT 
CURLE_OBSOLETE29 
CURLE_FTP_PORT_FAILED 
CURLE_FTP_COULDNT_USE_REST 
CURLE_OBSOLETE32 
CURLE_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_OBSOLETE40 
CURLE_FUNCTION_NOT_FOUND 
CURLE_ABORTED_BY_CALLBACK 
CURLE_BAD_FUNCTION_ARGUMENT 
CURLE_OBSOLETE44 
CURLE_INTERFACE_FAILED 
CURLE_OBSOLETE46 
CURLE_TOO_MANY_REDIRECTS 
CURLE_UNKNOWN_TELNET_OPTION 
CURLE_TELNET_OPTION_SYNTAX 
CURLE_OBSOLETE50 
CURLE_PEER_FAILED_VERIFICATION 
CURLE_GOT_NOTHING 
CURLE_SSL_ENGINE_NOTFOUND 
CURLE_SSL_ENGINE_SETFAILED 
CURLE_SEND_ERROR 
CURLE_RECV_ERROR 
CURLE_OBSOLETE57 
CURLE_SSL_CERTPROBLEM 
CURLE_SSL_CIPHER 
CURLE_SSL_CACERT 
CURLE_BAD_CONTENT_ENCODING 
CURLE_LDAP_INVALID_URL 
CURLE_FILESIZE_EXCEEDED 
CURLE_USE_SSL_FAILED 
CURLE_SEND_FAIL_REWIND 
CURLE_SSL_ENGINE_INITFAILED 
CURLE_LOGIN_DENIED 
CURLE_TFTP_NOTFOUND 
CURLE_TFTP_PERM 
CURLE_REMOTE_DISK_FULL 
CURLE_TFTP_ILLEGAL 
CURLE_TFTP_UNKNOWNID 
CURLE_REMOTE_FILE_EXISTS 
CURLE_TFTP_NOSUCHUSER 
CURLE_CONV_FAILED 
CURLE_CONV_REQD 
CURLE_SSL_CACERT_BADFILE 
CURLE_REMOTE_FILE_NOT_FOUND 
CURLE_SSH 
CURLE_SSL_SHUTDOWN_FAILED 
CURLE_AGAIN 
CURLE_SSL_CRL_BADFILE 
CURLE_SSL_ISSUER_ERROR 
CURL_LAST 

Definition at line 310 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_DISABLED 
CURL_FORMADD_LAST 

Definition at line 1450 of file curl.h.

Enumerator:
CFINIT 
CFINIT 
CFINIT 
CFINIT 
CFINIT 
CFINIT 
CFINIT 
CFINIT 
CFINIT 
CFINIT 
CFINIT 
CFINIT 
CFINIT 
CFINIT 
CFINIT 
CFINIT 
CFINIT 
CFINIT 
CFINIT 
CFINIT 
CURLFORM_LASTENTRY 

Definition at line 1396 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_OS_ERRNO 
CURLINFO_NUM_CONNECTS 
CURLINFO_SSL_ENGINES 
CURLINFO_COOKIELIST 
CURLINFO_LASTSOCKET 
CURLINFO_FTP_ENTRY_PATH 
CURLINFO_REDIRECT_URL 
CURLINFO_PRIMARY_IP 
CURLINFO_APPCONNECT_TIME 
CURLINFO_CERTINFO 
CURLINFO_CONDITION_UNMET 
CURLINFO_LASTONE 

Definition at line 1670 of file curl.h.

enum curliocmd
Enumerator:
CURLIOCMD_NOP 
CURLIOCMD_RESTARTREAD 
CURLIOCMD_LAST 

Definition at line 262 of file curl.h.

enum curlioerr
Enumerator:
CURLIOE_OK 
CURLIOE_UNKNOWNCMD 
CURLIOE_FAILRESTART 
CURLIOE_LAST 

Definition at line 255 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 
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 657 of file curl.h.

enum CURLSHcode
Enumerator:
CURLSHE_OK 
CURLSHE_BAD_OPTION 
CURLSHE_IN_USE 
CURLSHE_INVALID 
CURLSHE_NOMEM 
CURLSHE_LAST 

Definition at line 1772 of file curl.h.

Enumerator:
CURLSHOPT_NONE 
CURLSHOPT_SHARE 
CURLSHOPT_UNSHARE 
CURLSHOPT_LOCKFUNC 
CURLSHOPT_UNLOCKFUNC 
CURLSHOPT_USERDATA 
CURLSHOPT_LAST 

Definition at line 1781 of file curl.h.

Enumerator:
CURLSOCKTYPE_IPCXN 
CURLSOCKTYPE_LAST 

Definition at line 223 of file curl.h.

Enumerator:
CURLVERSION_FIRST 
CURLVERSION_SECOND 
CURLVERSION_THIRD 
CURLVERSION_FOURTH 
CURLVERSION_LAST 

Definition at line 1800 of file curl.h.


Function Documentation

CURL_EXTERN char* curl_easy_escape ( CURL handle,
const char *  string,
int  length 
)
CURL_EXTERN CURLcode curl_easy_pause ( CURL handle,
int  bitmask 
)
CURL_EXTERN const char* curl_easy_strerror ( CURLcode  )
CURL_EXTERN char* curl_easy_unescape ( CURL handle,
const char *  string,
int  length,
int outlength 
)
CURL_EXTERN char* curl_escape ( const char *  string,
int  length 
)
CURL_EXTERN CURLFORMcode curl_formadd ( struct curl_httppost **  httppost,
struct curl_httppost **  last_post,
  ... 
)
CURL_EXTERN void curl_formfree ( struct curl_httppost form)
CURL_EXTERN int curl_formget ( struct curl_httppost form,
void *  arg,
curl_formget_callback  append 
)
CURL_EXTERN void curl_free ( void *  p)
CURL_EXTERN time_t curl_getdate ( const char *  p,
const time_t *  unused 
)
CURL_EXTERN char* curl_getenv ( const char *  variable)
CURL_EXTERN void curl_global_cleanup ( void  )
CURL_EXTERN CURLcode curl_global_init ( long  flags)
CURL_EXTERN 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 
)
CURL_EXTERN CURLSHcode curl_share_cleanup ( CURLSH )
CURL_EXTERN CURLSH* curl_share_init ( void  )
CURL_EXTERN CURLSHcode curl_share_setopt ( CURLSH ,
CURLSHoption  option,
  ... 
)
CURL_EXTERN const char* curl_share_strerror ( CURLSHcode  )
CURL_EXTERN struct curl_slist* curl_slist_append ( struct curl_slist ,
const char *   
) [read]
CURL_EXTERN void curl_slist_free_all ( struct curl_slist )
CURL_EXTERN int() curl_strequal ( const char *  s1,
const char *  s2 
)
CURL_EXTERN int() curl_strnequal ( const char *  s1,
const char *  s2,
size_t  n 
)
CURL_EXTERN char* curl_unescape ( const char *  string,
int  length 
)
CURL_EXTERN char* curl_version ( void  )
CURL_EXTERN curl_version_info_data* curl_version_info ( CURLversion  )