zeCurl
Use .new("curl") to create the object. It is a simple binding
of CURL library.
:callback(read, write, flag)
Sets callback functions. The read function alway receives a Lua string.
The write function receives the number of bytes to read and returns a string.
:encode(string)
Encodes the string to a URL safe format string and returns the result.
:encode{...}
Encodes contents in the Lua table to a URL safe format string and returns
the reault. The table should only contain form submission contents as
{name = "John", age = "30", ...}
:exec()
Executes the request. Returns 0 if no error; otherwise the error
code.
:version()
Returns the version number as string.
:set{...}
Sets object properties
with a Lua table. Valid key-value paris in the Lua table are listed as
follows. Please refer to CURL document
for details on curl_easy_setopt function.
| Key |
Value |
Type |
Corresponding cURL functions |
| VERBOSE |
n |
Number |
curl_easy_setopt(curl, CURLOPT_VERBOSE, n): Set the parameter to
non-zero to get the library to display a lot of verbose information
about its operations.
|
| HEADER |
n |
Number |
curl_easy_setopt(curl, CURLOPT_HEADER, n): A non-zero parameter
tells the library to include the header in the body output. |
| URL |
n |
Number |
curl_easy_setopt(curl, CURLOPT_URL, n): The actual URL to deal with.
The parameter should be a char * to a zero terminated string. The
string must remain present until curl no longer needs it, as it doesn't
copy the string. If the given URL lacks the protocol part ("http://"
or "ftp://" etc), it will attempt to guess which protocol to use based
on the given host name. |
| PROXY |
s |
String |
curl_easy_setopt(curl, CURLOPT_PROXY, s): Set HTTP proxy to use.
The parameter should be a char * to a zero terminated string holding
the host name or dotted IP address. To specify port number in this
string, append :[port] to the end of the host name. The proxy string
may be prefixed with [protocol]:// since any such prefix will be ignored. |
| PROXYPORT |
n |
Number |
curl_easy_setopt(curl, CURLOPT_PORT, n): Set HTTP proxy to use.
The parameter should be a char * to a zero terminated string holding
the host name or dotted IP address. To specify port number in this
string, append :[port] to the end of the host name. The proxy string
may be prefixed with [protocol]:// since any such prefix will be ignored. |
| PROXY_HTTP |
a |
Any |
curl_easy_setopt(curl, CURLOPT_PROXYTYPE, CURLPROXY_HTTP) |
| PROXY_SOCKS5 |
a |
Any |
curl_easy_setopt(curl, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS5) |
| HTTPPROXYTUNNEL |
n |
Number |
curl_easy_setopt(curl, CURLOPT_HTTPPROXYTUNNEL, n): Set the parameter
to non-zero to get the library to tunnel all operations through a
given HTTP proxy. |
| INTERFACE |
s |
String |
curl_easy_setopt(curl, CURLOPT_INTERFACE, s): Pass a char * as parameter.
This set the interface name to use as outgoing network interface.
The name can be an interface name, an IP address or a host name. |
| DNS_CACHE_TIMEOUT |
n |
Number |
curl_easy_setopt(curl, CURLOPT_DNS_CACHE_TIMEOUT, n): Pass a long,
this sets the timeout in seconds. Name resolves will be kept in memory
for this number of seconds. Set to zero (0) to completely disable
caching, or set to -1 to make the cached entries remain forever. By
default, libcurl caches this info for 60 seconds. |
| DNS_USE_GLOBAL_CACHE |
n |
Number |
curl_easy_setopt(curl, CURLOPT_DNS_USE_GLOBAL_CACHE, n): Pass a
long. If the value is non-zero, it tells curl to use a global DNS
cache that will survive between easy handle creations and deletions. |
| BUFFERSIZE |
n |
Number |
curl_easy_setopt(curl, CURLOPT_BUFFERSIZE, n): Pass a long specifying
your preferred size for the receive buffer in libcurl. |
| PORT |
n |
Number |
curl_easy_setopt(curl, CURLOPT_PORT, n):Pass a long specifying what
remote port number to connect to, instead of the one specified in
the URL or the default port for the used protocol. |
| TCP_NODELAY |
n |
Number |
curl_easy_setopt(curl, CURLOPT_TCP_NODELAY, n): Pass a long specifying
whether the TCP_NODELAY option should be set or cleared (1 = set,
0 = clear). The option is cleared by default. This will have no effect
after the connection has been established. |
| NETRC_OPTIONAL |
a |
Any |
curl_easy_setopt(curl, CURLOPT_NETRC, CURL_NETRC_OPTIONAL): The
use of your ~/.netrc file is optional, and information in the URL
is to be preferred. The file will be scanned with the host and user
name (to find the password only) or with the host only, to find the
first user name and password after that machine, which ever information
is not specified in the URL. |
| NETRC_IGNORED |
a |
Any |
curl_easy_setopt(curl, CURLOPT_NETRC, CURL_NETRC_IGNORED): The library
will ignore the file and use only the information in the URL. |
| NETRC_REQUIRED |
a |
Any |
curl_easy_setopt(curl, CURLOPT_NETRC, CURL_NETRC_REQUIRED): This
value tells the library that use of the file is required, to ignore
the information in the URL, and to search the file with the host only.
|
| NETRC_FILE |
s |
String |
curl_easy_setopt(curl, CURLOPT_NETRC_FILE, s): Pass a char * as
parameter, pointing to a zero terminated string containing the full
path name to the file you want libcurl to use as .netrc file. If this
option is omitted, and CURLOPT_NETRC is set, libcurl will attempt
to find the a .netrc file in the current user's home directory. |
| USERPWD |
s |
String |
curl_easy_setopt(curl, CURLOPT_USERPWD, s): Pass a char * as parameter,
which should be [user name]:[password] to use for the connection.
|
| PROXYUSERPWD |
s |
String |
curl_easy_setopt(curl, CURLOPT_PROXYUSERPWD, s): Pass a char * as
parameter, which should be [user name]:[password] to use for the connection
to the HTTP proxy. |
| AUTOREFERER |
n |
Number |
curl_easy_setopt(curl, CURLOPT_AUTOREFERER, n): Pass a non-zero
parameter to enable this. When enabled, libcurl will automatically
set the Referer: field in requests where it follows a Location: redirect.
|
| FOLLOWLOCATION |
n |
Number |
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, n): A non-zero parameter
tells the library to follow any Location: header that the server sends
as part of an HTTP header. |
| UNRESTRICTED_AUTH |
n |
Number |
curl_easy_setopt(curl, CURLOPT_UNRESTRICTED_AUTH, n): A non-zero
parameter tells the library it can continue to send authentication
(user+password) when following locations, even when hostname changed.
|
| MAXREDIRS |
n |
Number |
curl_easy_setopt(curl, CURLOPT_MAXREDIRS, n): Pass a long. The set
number will be the redirection limit. If that many redirections have
been followed, the next redirect will cause an error (CURLE_TOO_MANY_REDIRECTS).
|
| PUT |
n |
Number |
curl_easy_setopt(curl, CURLOPT_PUT, n): A non-zero parameter tells
the library to use HTTP PUT to transfer data. The data should be set
with CURLOPT_READDATA and CURLOPT_INFILESIZE. |
| POST |
n |
Number |
curl_easy_setopt(curl, CURLOPT_POST, n): A non-zero parameter tells
the library to do a regular HTTP post. This is a normal application/x-www-form-urlencoded
kind, which is the most commonly used one by HTML forms. See the CURLOPT_POSTFIELDS
option for how to specify the data to post and CURLOPT_POSTFIELDSIZE
in how to set the data size. Using the CURLOPT_POSTFIELDS option implies
this option. |
| POSTFIELDS |
s |
String |
curl_easy_setopt(curl, CURLOPT_POSTFIELDS, s): Pass a char * as
parameter, which should be the full data to post in an HTTP post operation.
You need to make sure that the data is formatted the way you want
the server to receive it. libcurl will not convert or encode it for
you. Most web servers will assume this data to be url-encoded. Take
note. This POST is a normal application/x-www-form-urlencoded kind
(and libcurl will set that Content-Type by default when this option
is used), which is the most commonly used one by HTML forms. See also
the CURLOPT_POST. Using CURLOPT_POSTFIELDS implies CURLOPT_POST. |
| REFERER |
s |
String |
curl_easy_setopt(curl, CURLOPT_REFERER, s): Pass a pointer to a
zero terminated string as parameter. It will be used to set the Referer:
header in the http request sent to the remote server. |
| USERAGENT |
s |
String |
curl_easy_setopt(curl, CURLOPT_USERAGENT, s): Pass a pointer to
a zero terminated string as parameter. It will be used to set the
User-Agent: header in the http request sent to the remote server.
This can be used to fool servers or scripts. You can also set any
custom header with CURLOPT_HTTPHEADER. |
| COOKIE |
s |
String |
curl_easy_setopt(curl, CURLOPT_COOKIE, s): Pass a pointer to a zero
terminated string as parameter. It will be used to set a cookie in
the http request. The format of the string should be NAME=CONTENTS,
where NAME is the cookie name and CONTENTS is what the cookie should
contain. If you need to set multiple cookies, you need to set them
all using a single option and thus you need to concatenate them all
in one single string. Set multiple cookies in one string like this:
"name1=content1; name2=content2;" etc. |
| COOKIEFILE |
s |
String |
curl_easy_setopt(curl, CURLOPT_COOKIEFILE, s): Pass a pointer to
a zero terminated string as parameter. It should contain the name
of your file holding cookie data to read. The cookie data may be in
Netscape / Mozilla cookie data format or just regular HTTP-style headers
dumped to a file. Given an empty or non-existing file, this option
will enable cookies for this curl handle, making it understand and
parse received cookies and then use matching cookies in future request.
|
| COOKIEJAR |
s |
String |
curl_easy_setopt(curl, CURLOPT_COOKIEJAR, s): Pass a file name as
char *, zero terminated. This will make libcurl write all internally
known cookies to the specified file when curl_easy_cleanup(3) is called.
If no cookies are known, no file will be created. Specify "-" to instead
have the cookies written to stdout. Using this option also enables
cookies for this session, so if you for example follow a location
it will make matching cookies get sent accordingly. |
| COOKIESESSION |
n |
Number |
curl_easy_setopt(curl, CURLOPT_COOKIESESSION, n): Pass a long set
to non-zero to mark this as a new cookie "session". It will force
libcurl to ignore all cookies it is about to load that are "session
cookies" from the previous session. By default, libcurl always stores
and loads all cookies, independent if they are session cookies are
not. Session cookies are cookies without expiry date and they are
meant to be alive and existing for this "session" only. |
| HTTPGET |
n |
Number |
curl_easy_setopt(curl, CURLOPT_HTTPGET, n): Pass a long. If the
long is non-zero, this forces the HTTP request to get back to GET.
Only really usable if POST, PUT or a custom request have been used
previously using the same curl handle. |
| HTTP_VERSION_NONE |
a |
Any |
curl_easy_setopt(curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_NONE)
|
| HTTP_VERSION_1_0 |
a |
Any |
curl_easy_setopt(curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0) |
| HTTP_VERSION_1_1 |
a |
Any |
curl_easy_setopt(curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1) |
| FTPPORT |
s |
String |
curl_easy_setopt(curl, CURLOPT_FTPPORT, s): Pass a pointer to a
zero terminated string as parameter. It will be used to get the IP
address to use for the ftp PORT instruction. The PORT instruction
tells the remote server to connect to our specified IP address. The
string may be a plain IP address, a host name, an network interface
name (under Unix) or just a '-' letter to let the library use your
systems default IP address. Default FTP operations are passive, and
thus won't use PORT. |
| FTPLISTONLY |
n |
Number |
curl_easy_setopt(curl, CURLOPT_FTPLISTONLY, n): A non-zero parameter
tells the library to just list the names of an ftp directory, instead
of doing a full directory listing that would include file sizes, dates
etc. This causes an FTP NLST command to be sent. Beware that some
FTP servers list only files in their response to NLST; they might
not include subdirectories and symbolic links. |
| FTPAPPEND |
n |
Number |
curl_easy_setopt(curl, CURLOPT_FTPAPPEND, n): A non-zero parameter
tells the library to append to the remote file instead of overwrite
it. This is only useful when uploading to an ftp site. |
| FTP_USE_EPRT |
n |
Number |
curl_easy_setopt(curl, CURLOPT_FTP_USE_EPRT, n): Pass a long. If
the value is non-zero, it tells curl to use the EPRT (and LPRT) command
when doing active FTP downloads (which is enabled by CURLOPT_FTPPORT).
Using EPRT means that it will first attempt to use EPRT and then LPRT
before using PORT, but if you pass FALSE (zero) to this option, it
will not try using EPRT or LPRT, only plain PORT. |
| FTP_USE_EPSV |
n |
Number |
curl_easy_setopt(curl, CURLOPT_FTP_USE_EPSV, n): Pass a long. If
the value is non-zero, it tells curl to use the EPSV command when
doing passive FTP downloads (which it always does by default). Using
EPSV means that it will first attempt to use EPSV before using PASV,
but if you pass FALSE (zero) to this option, it will not try using
EPSV, only plain PASV. |
| FTP_CREATE_MISSING_DIRS |
n |
Number |
curl_easy_setopt(curl, CURLOPT_FTP_CREATE_MISSING_DIRS, n): Pass
a long. If the value is non-zero, curl will attempt to create any
remote directory that it fails to CWD into. CWD is the command that
changes working directory. |
| FTP_RESPONSE_TIMEOUT |
n |
Number |
curl_easy_setopt(curl, CURLOPT_FTP_RESPONSE_TIMEOUT, n): Pass a
long. Causes curl to set a timeout period (in seconds) on the amount
of time that the server is allowed to take in order to generate a
response message for a command before the session is considered hung.
Note that while curl is waiting for a response, this value overrides
CURLOPT_TIMEOUT. |
| FTP_UPLOAD |
s |
String |
This option opens the local file (s), calls curl_easy_setopt(curl,
CURLOPT_UPLOAD, 1), calls curl_easy_setopt(curl, CURLOPT_READDATA,
fp), and calls curl_easy_setopt(curl, CURLOPT_INFILESIZE, size). The
fp and size parameters are the file stream pointer and the file size,
respectively. |
| TRANSFERTEXT |
n |
Number |
curl_easy_setopt(curl, CURLOPT_TRANSFERTEXT, n): A non-zero parameter
tells the library to use ASCII mode for ftp transfers, instead of
the default binary transfer. |
| CRLF |
n |
Number |
curl_easy_setopt(curl, CURLOPT_CRLF, n): Convert Unix newlines to
CRLF newlines on transfers. |
| RANGE |
s |
String |
curl_easy_setopt(curl, CURLOPT_RANGE, s): Pass a char * as parameter,
which should contain the specified range you want. It should be in
the format "X-Y", where X or Y may be left out. HTTP transfers also
support several intervals, separated with commas as in "X-Y,N-M".
Using this kind of multiple intervals will cause the HTTP server to
send the response document in pieces (using standard MIME separation
techniques). |
| RESUME_FROM |
n |
Number |
curl_easy_setopt(curl, CURLOPT_RESUME_FROM, n): Pass a long as parameter.
It contains the offset in number of bytes that you want the transfer
to start from. |
| CUSTOMREQUEST |
s |
String |
curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, s): Pass a pointer
to a zero terminated string as parameter. It will be user instead
of GET or HEAD when doing an HTTP request, or instead of LIST or NLST
when doing an ftp directory listing. This is useful for doing DELETE
or other more or less obscure HTTP requests. Don't do this at will,
make sure your server supports the command first. |
| FILETIME |
n |
Number |
curl_easy_setopt(curl, CURLOPT_FILETIME, n): Pass a long. If it
is a non-zero value, libcurl will attempt to get the modification
date of the remote document in this operation. |
| NOBODY |
n |
Number |
curl_easy_setopt(curl, CURLOPT_NOBODY, n): A non-zero parameter
tells the library to not include the body-part in the output. This
is only relevant for protocols that have separate header and body
parts. On HTTP(S) servers, this will make libcurl do a HEAD request.
|
| INFILESIZE |
n |
Number |
curl_easy_setopt(curl, CURLOPT_INFILESIZE, n): When uploading a
file to a remote site, this option should be used to tell libcurl
what the expected size of the infile is. This value should be passed
as a long. |
| UPLOAD |
n |
Number |
curl_easy_setopt(curl, CURLOPT_UPLOAD, n): A non-zero parameter
tells the library to prepare for an upload. |
| MAXFILESIZE |
n |
Number |
curl_easy_setopt(curl, CURLOPT_MAXFILESIZE, n): Pass a long as parameter.
This allows you to specify the maximum size (in bytes) of a file to
download. If the file requested is larger than this value, the transfer
will not start and CURLE_FILESIZE_EXCEEDED will be returned. |
| TIMECONDITION |
n |
Number |
curl_easy_setopt(curl, CURLOPT_TIMECONDITION, n): Pass a long as
parameter. This defines how the CURLOPT_TIMEVALUE time value is treated.
You can set this parameter to CURL_TIMECOND_IFMODSINCE or CURL_TIMECOND_IFUNMODSINCE.
This feature applies to HTTP and FTP. |
| TIMEVALUE |
n |
Number |
curl_easy_setopt(curl, CURLOPT_TIMEVALUE, n): Pass a long as parameter.
This should be the time in seconds since 1 jan 1970, and the time
will be used in a condition as specified with CURLOPT_TIMECONDITION |
| TIMEOUT |
n |
Number |
curl_easy_setopt(curl, CURLOPT_TIMEOUT, n): Pass a long as parameter
containing the maximum time in seconds that you allow the libcurl
transfer operation to take. Normally, name lookups can take a considerable
time and limiting operations to less than a few minutes risk aborting
perfectly normal operations. This option will cause curl to use the
SIGALRM to enable time-outing system calls. |
| LOW_SPEED_LIMIT |
n |
Number |
curl_easy_setopt(curl, CURLOPT_LOW_SPEED_LIMIT, n): Pass a long
as parameter. It contains the transfer speed in bytes per second that
the transfer should be below during CURLOPT_LOW_SPEED_TIME seconds
for the library to consider it too slow and abort. |
| LOW_SPEED_TIME |
n |
Number |
curl_easy_setopt(curl, CURLOPT_LOW_SPEED_TIME, n): Pass a long as
parameter. It contains the time in seconds that the transfer should
be below the CURLOPT_LOW_SPEED_LIMIT for the library to consider it
too slow and abort. |
| MAXCONNECTS |
n |
Number |
curl_easy_setopt(curl, CURLOPT_MAXCONNECTS, n): Pass a long. The
set number will be the persistent connection cache size. The set amount
will be the maximum amount of simultaneously open connections that
libcurl may cache. Default is 5, and there isn't much point in changing
this value unless you are perfectly aware of how this work and changes
libcurl's behaviour. This concerns connection using any of the protocols
that support persistent connections. |
| CLOSEPOLICY |
n |
Number |
curl_easy_setopt(curl, CURLOPT_CLOSEPOLICY, n): Pass a long. This
option sets what policy libcurl should use when the connection cache
is filled and one of the open connections has to be closed to make
room for a new connection. This must be one of the CURLCLOSEPOLICY_*
defines. Use CURLCLOSEPOLICY_LEAST_RECENTLY_USED to make libcurl close
the connection that was least recently used, that connection is also
least likely to be capable of re-use. Use CURLCLOSEPOLICY_OLDEST to
make libcurl close the oldest connection, the one that was created
first among the ones in the connection cache. The other close policies
are not support yet. |
| FRESH_CONNECT |
n |
Number |
curl_easy_setopt(curl, CURLOPT_FRESH_CONNECT, n): Pass a long. Set
to non-zero to make the next transfer use a new (fresh) connection
by force. If the connection cache is full before this connection,
one of the existing connections will be closed as according to the
selected or default policy. This option should be used with caution
and only if you understand what it does. Set this to 0 to have libcurl
attempt re-using an existing connection (default behavior). |
| FORBID_REUSE |
n |
Number |
curl_easy_setopt(curl, CURLOPT_FORBID_REUSE, n): Pass a long. Set
to non-zero to make the next transfer explicitly close the connection
when done. Normally, libcurl keep all connections alive when done
with one transfer in case there comes a succeeding one that can re-use
them. This option should be used with caution and only if you understand
what it does. Set to 0 to have libcurl keep the connection open for
possibly later re-use (default behavior). |
| CONNECTTIMEOUT |
n |
Number |
curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, n): Pass a long.
It should contain the maximum time in seconds that you allow the connection
to the server to take. This only limits the connection phase, once
it has connected, this option is of no more use. Set to zero to disable
connection timeout (it will then only timeout on the system's internal
timeouts). |
| IPRESOLVE_WHATEVER |
a |
Any |
curl_easy_setopt(curl, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_WHATEVER):
|
| IPRESOLVE_V4 |
a |
Any |
curl_easy_setopt(curl, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4) |
| IPRESOLVE_V6 |
a |
Any |
curl_easy_setopt(curl, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V6) |
Error Code
CURLE_OK = 0,
CURLE_UNSUPPORTED_PROTOCOL, /* 1 */
CURLE_FAILED_INIT, /* 2 */
CURLE_URL_MALFORMAT, /* 3 */
CURLE_URL_MALFORMAT_USER, /* 4 (NOT USED) */
CURLE_COULDNT_RESOLVE_PROXY, /* 5 */
CURLE_COULDNT_RESOLVE_HOST, /* 6 */
CURLE_COULDNT_CONNECT, /* 7 */
CURLE_FTP_WEIRD_SERVER_REPLY, /* 8 */
CURLE_FTP_ACCESS_DENIED, /* 9 */
CURLE_FTP_USER_PASSWORD_INCORRECT, /* 10 */
CURLE_FTP_WEIRD_PASS_REPLY, /* 11 */
CURLE_FTP_WEIRD_USER_REPLY, /* 12 */
CURLE_FTP_WEIRD_PASV_REPLY, /* 13 */
CURLE_FTP_WEIRD_227_FORMAT, /* 14 */
CURLE_FTP_CANT_GET_HOST, /* 15 */
CURLE_FTP_CANT_RECONNECT, /* 16 */
CURLE_FTP_COULDNT_SET_BINARY, /* 17 */
CURLE_PARTIAL_FILE, /* 18 */
CURLE_FTP_COULDNT_RETR_FILE, /* 19 */
CURLE_FTP_WRITE_ERROR, /* 20 */
CURLE_FTP_QUOTE_ERROR, /* 21 */
CURLE_HTTP_RETURNED_ERROR, /* 22 */
CURLE_WRITE_ERROR, /* 23 */
CURLE_MALFORMAT_USER, /* 24 - NOT USED */
CURLE_FTP_COULDNT_STOR_FILE, /* 25 - failed FTP upload */
CURLE_READ_ERROR, /* 26 - could open/read from file */
CURLE_OUT_OF_MEMORY, /* 27 */
CURLE_OPERATION_TIMEOUTED, /* 28 - the timeout time was reached */
CURLE_FTP_COULDNT_SET_ASCII, /* 29 - TYPE A failed */
CURLE_FTP_PORT_FAILED, /* 30 - FTP PORT operation failed */
CURLE_FTP_COULDNT_USE_REST, /* 31 - the REST command failed */
CURLE_FTP_COULDNT_GET_SIZE, /* 32 - the SIZE command failed */
CURLE_HTTP_RANGE_ERROR, /* 33 - RANGE "command" didn't work */
CURLE_HTTP_POST_ERROR, /* 34 */
CURLE_SSL_CONNECT_ERROR, /* 35 - wrong when connecting with SSL */
CURLE_BAD_DOWNLOAD_RESUME, /* 36 - couldn't resume download */
CURLE_FILE_COULDNT_READ_FILE, /* 37 */
CURLE_LDAP_CANNOT_BIND, /* 38 */
CURLE_LDAP_SEARCH_FAILED, /* 39 */
CURLE_LIBRARY_NOT_FOUND, /* 40 */
CURLE_FUNCTION_NOT_FOUND, /* 41 */
CURLE_ABORTED_BY_CALLBACK, /* 42 */
CURLE_BAD_FUNCTION_ARGUMENT, /* 43 */
CURLE_BAD_CALLING_ORDER, /* 44 - NOT USED */
CURLE_INTERFACE_FAILED, /* 45 - CURLOPT_INTERFACE failed */
CURLE_BAD_PASSWORD_ENTERED, /* 46 - NOT USED */
CURLE_TOO_MANY_REDIRECTS , /* 47 - catch endless re-direct loops */
CURLE_UNKNOWN_TELNET_OPTION, /* 48 - User specified an unknown option */
CURLE_TELNET_OPTION_SYNTAX , /* 49 - Malformed telnet option */
CURLE_OBSOLETE, /* 50 - NOT USED */
CURLE_SSL_PEER_CERTIFICATE, /* 51 - peer's certificate wasn't ok */
CURLE_GOT_NOTHING, /* 52 - when this is a specific error */
CURLE_SSL_ENGINE_NOTFOUND, /* 53 - SSL crypto engine not found */
CURLE_SSL_ENGINE_SETFAILED, /* 54 - can not set SSL crypto engine as
default */
CURLE_SEND_ERROR, /* 55 - failed sending network data */
CURLE_RECV_ERROR, /* 56 - failure in receiving network data */
CURLE_SHARE_IN_USE, /* 57 - share is in use */
CURLE_SSL_CERTPROBLEM, /* 58 - problem with the local certificate */
CURLE_SSL_CIPHER, /* 59 - couldn't use specified cipher */
CURLE_SSL_CACERT, /* 60 - problem with the CA cert (path?) */
CURLE_BAD_CONTENT_ENCODING, /* 61 - Unrecognized transfer encoding */
CURLE_LDAP_INVALID_URL, /* 62 - Invalid LDAP URL */
CURLE_FILESIZE_EXCEEDED, /* 63 - Maximum file size exceeded */
CURLE_FTP_SSL_FAILED, /* 64 - Requested FTP SSL level failed */
|