Planeshift
|
#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 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 *) |
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 CINIT | ( | name, | |
type, | |||
number | |||
) | CURLOPT_name = type + number |
#define curl_ftpssl curl_usessl |
#define CURL_REDIR_POST_ALL (CURL_REDIR_POST_301|CURL_REDIR_POST_302) |
#define CURLAUTH_ANYSAFE (~(CURLAUTH_BASIC|CURLAUTH_DIGEST_IE)) |
#define CURLE_FTP_BAD_DOWNLOAD_RESUME CURLE_BAD_DOWNLOAD_RESUME |
#define CURLE_FTP_COULDNT_SET_BINARY CURLE_FTP_COULDNT_SET_TYPE |
#define CURLE_SSL_PEER_CERTIFICATE CURLE_PEER_FAILED_VERIFICATION |
#define CURLPAUSE_CONT (CURLPAUSE_RECV_CONT|CURLPAUSE_SEND_CONT) |
typedef void*(* curl_calloc_callback)(size_t nmemb, size_t size) |
typedef CURLcode(* curl_conv_callback)(char *buffer, size_t length) |
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) |
anonymous enum |
anonymous enum |
enum curl_closepolicy |
enum curl_ftpauth |
enum curl_ftpccc |
enum curl_ftpcreatedir |
enum curl_ftpmethod |
enum curl_infotype |
enum curl_khmatch |
enum curl_khstat |
enum curl_lock_access |
enum curl_lock_data |
enum CURL_NETRC_OPTION |
enum curl_proxytype |
enum curl_TimeCond |
enum curl_usessl |
enum CURLcode |
enum CURLFORMcode |
enum CURLformoption |
enum CURLINFO |
enum curliocmd |
enum curlioerr |
enum CURLoption |
enum CURLSHcode |
enum CURLSHoption |
enum curlsocktype |
enum CURLversion |
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 | ) |