MBS Xojo Developer Conference and Training
Join us from 3rd to 6th May 2017 in Berlin, Germany.

Platforms to show: All Mac Windows Linux Cross-Platform

CURLNMBS constants

ChunkBegin result values

Constant Value Description
kChunkBeginFailed 1 Failed, so we exit downloads.
kChunkBeginOK 0 OK, download this file.
kChunkBeginSkip 2 Skip the file.

ChunkEnd result values

Constant Value Description
kChunkEndFailed 1 Failed, so we exit downloads.
kChunkEndOK 0 Download success.

Error Constants

Constant Value Description
kError_ABORTED_BY_CALLBACK 42
kError_AGAIN 81 socket is not ready for send/recv, wait till it's ready and try again (Added in CURL 7.18.2)
kError_BAD_CONTENT_ENCODING 61 Unrecognized transfer encoding
kError_BAD_DOWNLOAD_RESUME 36 couldn't resume download
kError_BAD_FUNCTION_ARGUMENT 43
kError_CHUNK_FAILED 88 Chunk callback reported error.
kError_CONV_FAILED 75 Conversion failed.
kError_CONV_REQD 76 Not used with plugin.
kError_COULDNT_CONNECT 7 Could not connect. Proxy set? Firewall open?
kError_COULDNT_RESOLVE_HOST 6
kError_COULDNT_RESOLVE_PROXY 5
kError_FAILED_INIT 2
kError_FILESIZE_EXCEEDED 63 Maximum file size exceeded
kError_FILE_COULDNT_READ_FILE 37
kError_FTP_ACCEPT_FAILED 10 While waiting for the server to connect back when an active FTP session is used, an error code was sent over the control connection or similar.
kError_FTP_ACCEPT_TIMEOUT 12 During an active FTP session while waiting for the server to connect, the OptionAcceptTimeoutMS (or the internal default) timeout expired.
kError_FTP_BAD_FILE_LIST 87 Unable to parse FTP file list.
kError_FTP_CANT_GET_HOST 15
kError_FTP_COULDNT_RETR_FILE 19
kError_FTP_COULDNT_SET_TYPE 17
kError_FTP_COULDNT_USE_REST 31 the REST command failed
kError_FTP_PORT_FAILED 30 FTP PORT operation failed
kError_FTP_PRET_FAILED 84 a PRET command failed
kError_FTP_WEIRD_227_FORMAT 14
kError_FTP_WEIRD_PASS_REPLY 11
kError_FTP_WEIRD_PASV_REPLY 13
kError_FTP_WEIRD_SERVER_REPLY 8
kError_FUNCTION_NOT_FOUND 41
kError_GOT_NOTHING 52 when this is a specific error
kError_HTTP2 16 A problem was detected in the HTTP2 framing layer. This is somewhat generic and can be one out of several problems, see the error buffer for details.
kError_HTTP_POST_ERROR 34
kError_HTTP_RETURNED_ERROR 22
kError_INTERFACE_FAILED 45
kError_LDAP_CANNOT_BIND 38
kError_LDAP_INVALID_URL 62 Invalid LDAP URL
kError_LDAP_SEARCH_FAILED 39
kError_LOGIN_DENIED 67 user, password or similar was not accepted and we failed to login
kError_NOT_BUILT_IN 4 A requested feature, protocol or option was not found built-in in this libCURL due to a build-time decision. This means that a feature or option was not enabled or explicitly disabled when libCURL was built and in order to get it to function you have to get a rebuilt libCURL.
kError_NO_CONNECTION_AVAILABLE 89 For internal use only, will never be returned by libCURL.
No connection available, the session will be queued. (added in 7.30.0)
kError_OK 0
kError_OPERATION_TIMEDOUT 28
kError_OUT_OF_MEMORY 27
kError_PARTIAL_FILE 18
kError_PEER_FAILED_VERIFICATION 51
kError_QUOTE_ERROR 21
kError_RANGE_ERROR 33
kError_READ_ERROR 26 could open/read from file
kError_RECV_ERROR 56 failure in receiving network data
kError_REMOTE_ACCESS_DENIED 9
kError_REMOTE_DISK_FULL 70 Out of disk space on server.
kError_REMOTE_FILE_EXISTS 73 File already exists.
kError_REMOTE_FILE_NOT_FOUND 78 Remote file not found.
kError_RTSP_CSEQ_ERROR 85 Mismatch of RTSP CSeq numbers.
kError_RTSP_SESSION_ERROR 86 mismatch of RTSP Session Identifiers
kError_SEND_ERROR 55 failed sending network data
kError_SEND_FAIL_REWIND 65 Sending the data requires a rewind that failed
kError_SSH 79 Error from the SSH layer, somewhat generic so the error message will be of interest when this has happened.
kError_SSL_CACERT 60 problem with the CA cert (path?)

You can often workaround by setting OptionSSLVerifyPeer = 0 and OptionSSLVerifyHost = 0. But that reduces security.
kError_SSL_CACERT_BADFILE 77 Could not load CACERT file, missing or wrong format.
kError_SSL_CERTPROBLEM 58 problem with the local certificate
kError_SSL_CIPHER 59 couldn't use specified cipher
kError_SSL_CONNECT_ERROR 35 wrong when connecting with SSL
kError_SSL_CRL_BADFILE 82 Could not load CRL file, missing or wrong format (Added in 7.19.0)
kError_SSL_ENGINE_INITFAILED 66 failed to initialise ENGINE
kError_SSL_ENGINE_NOTFOUND 53 SSL crypto engine not found
kError_SSL_ENGINE_SETFAILED 54 can not set SSL crypto engine as default
kError_SSL_ISSUER_ERROR 83 Issuer check failed. (Added in CURL 7.19.0)
kError_SSL_PINNEDPUBKEYNOTMATCH 90 specified pinned public key did not match.
kError_SSL_SHUTDOWN_FAILED 80 Failed to shut down the SSL connection.
kError_TELNET_OPTION_SYNTAX 49 Malformed telnet option
kError_TELNET_OPTION_SYNTAX 49
kError_TFTP_ILLEGAL 71 Illegal TFTP operation.
kError_TFTP_NOSUCHUSER 74 No such user.
kError_TFTP_NOTFOUND 68 File not found on server.
kError_TFTP_PERM 69 Permission problem on server.
kError_TFTP_UNKNOWNID 72 Unknown transfer ID.
kError_TOO_MANY_REDIRECTS 47 catch endless re-direct loops
kError_UNKNOWN_TELNET_OPTION 48 User specified an unknown option
kError_UNSUPPORTED_PROTOCOL 1
kError_UPLOAD_FAILED 25
kError_URL_MALFORMAT 3
kError_USE_SSL_FAILED 64 Requested FTP SSL level failed
kError_WRITE_ERROR 23

FileNameMatch Event Result Values

Constant Value Description
kFileNameMatchFailed 2 Failed.
kFileNameMatchIsMatch 0 Is Match.
kFileNameMatchNoMatch 1 No match.

Form Constants

Constant Value Description
kFormArray 8
kFormBuffer 11
kFormBufferLength 13
kFormBufferPtr 12
kFormContentHeader 15
kFormContentsLength 6
kFormContentType 14
kFormCopyContents 4
kFormCopyName 1
kFormEnd 17
kFormFile 10
kFormFileContent 7
kFormFilename 16
kFormNameLength 3
kFormPtrContents 5
kFormPtrName 2

Seek Origin Constants

Constant Value Description
kSeekOriginCurrent 1 Seek relative to current file position.
kSeekOriginEnd 2 Seek relative to end of file.
kSeekOriginSet 0 Seek relative to start of file.

Seek Event Result Values

Constant Value Description
kSeekReturnCantSeek 3 Return this value if you can't seek as you are not using a file, but for example a stream.
kSeekReturnFail 2 Returns this value if your seek operation failed.
kSeekReturnOk 1 Returns this value if your seek operation succeeded.

SSL Versions

Constant Value Description
kSSLVersionDefault 0
kSSLVersionSSLv2 2
kSSLVersionSSLv3 3
kSSLVersionTLSv1 1
kSSLVersionTLSv10 4 TLSv1.0 (Added in 7.34.0)
kSSLVersionTLSv11 5 TLSv1.1 (Added in 7.34.0)
kSSLVersionTLSv12 6 TLSv1.2 (Added in 7.34.0)




Links
MBS Xojo PDF Plugins