Platforms to show: All Mac Windows Linux Cross-Platform
Back to CURLNMBS class.
CURLNMBS.GetInfoConnectTime as Double
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CURL | MBS CURL Plugin | 9.8 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop, Console & Web |
The Lasterror property is set. 0 for success.
CURLNMBS.GetInfoContentLengthDownload as Double
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CURL | MBS CURL Plugin | 9.8 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop, Console & Web |
The Lasterror property is set. 0 for success.
This is the value read from the Content-Length: field.
CURLNMBS.GetInfoContentLengthUpload as Double
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CURL | MBS CURL Plugin | 9.8 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop, Console & Web |
The Lasterror property is set. 0 for success.
CURLNMBS.GetInfoContentType as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CURL | MBS CURL Plugin | 9.8 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop, Console & Web |
The Lasterror property is set. 0 for success.
This is the value read from the Content-Type: field. If you get "", it means that the server didn't send a valid Content-Type header or that the protocol used doesn't support this.
CURLNMBS.GetInfoCookieList as CURLNListMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CURL | MBS CURL Plugin | 9.8 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop, Console & Web |
The Lasterror property is set. 0 for success.
If there are no cookies (cookies for the handle have not been enabled or simply none have been received) the result is nil.
CURLNMBS.GetInfoEffectiveMethod as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CURL | MBS CURL Plugin | 20.4 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop, Console & Web |
In cases when you've asked libcurl to follow redirects, the method may very well not be the same method the first request would use.
CURLNMBS.GetInfoEffectiveURL as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CURL | MBS CURL Plugin | 9.8 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop, Console & Web |
The Lasterror property is set. 0 for success.
CURLNMBS.GetInfoFileTime as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CURL | MBS CURL Plugin | 9.8 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop, Console & Web |
The Lasterror property is set. 0 for success.
If you get -1, it can be because of many reasons (unknown, the server hides it or the server doesn't support the command that tells document time etc) and the time of the document is unknown. Note that you must tell the server to collect this information before the transfer is made, by using the OptionFileTime option or you will unconditionally get a -1 back. (Added in 7.5)
CURLNMBS.GetInfoFTPEntryPath as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CURL | MBS CURL Plugin | 15.2 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop, Console & Web |
That is the initial path libCURL ended up in when logging on to the remote FTP server.
Empty string if unknown.
CURLNMBS.GetInfoHeaderSize as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CURL | MBS CURL Plugin | 9.8 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop, Console & Web |
The Lasterror property is set. 0 for success.
CURLNMBS.GetInfoHTTPAuthAvail as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CURL | MBS CURL Plugin | 9.8 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop, Console & Web |
The Lasterror property is set. 0 for success.
The meaning of the bits is explained in the HTTPAuth option.
CURLNMBS.GetInfoHTTPConnectCode as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CURL | MBS CURL Plugin | 9.8 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop, Console & Web |
The Lasterror property is set. 0 for success.
none
CURLNMBS.GetInfoHTTPVersion as integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CURL | MBS CURL Plugin | 18.2 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop, Console & Web |
The returned value will be kHTTP_VERSION_1_0, kHTTP_VERSION_1_1, or kHTTP_VERSION_2_0, or 0 if the version can't be determined.
CURLNMBS.GetInfoLastSocket as Integer Deprecated
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CURL | MBS CURL Plugin | 15.2 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop, Console & Web |
If the socket is no longer valid, -1 is returned. When you finish working with the socket, the destructor will free the handle as usual and let libCURL close the socket and cleanup other resources associated with the handle. This is typically used in combination with OptionConnectOnly. (Added in 7.15.2)
NOTE: this API is not really working on win64, since the SOCKET type on win64 is 64 bit large while its 'long' is only 32 bits.
CURLNMBS.GetInfoLocalIP as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CURL | MBS CURL Plugin | 15.2 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop, Console & Web |
CURLNMBS.GetInfoLocalPort as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CURL | MBS CURL Plugin | 15.2 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop, Console & Web |
CURLNMBS.GetInfoNameLookupTime as Double
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CURL | MBS CURL Plugin | 9.8 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop, Console & Web |
The Lasterror property is set. 0 for success.
CURLNMBS.GetInfoNumConnects as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CURL | MBS CURL Plugin | 9.8 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop, Console & Web |
The Lasterror property is set. 0 for success.
(only the successful connects are counted)
Combined with RedirectCount you are able to know how many times libCURL successfully reused existing connection(s) or not. See the Connection Options to see how libCURL tries to make persistent connections to save time.
CURLNMBS.GetInfoOSErrno as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CURL | MBS CURL Plugin | 9.8 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop, Console & Web |
The Lasterror property is set. 0 for success.
CURLNMBS.GetInfoPreTransferTime as Double
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CURL | MBS CURL Plugin | 9.8 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop, Console & Web |
The Lasterror property is set. 0 for success.
This includes all pre-transfer commands and negotiations that are specific to the particular protocol(s) involved.
CURLNMBS.GetInfoPrimaryIP as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CURL | MBS CURL Plugin | 15.2 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop, Console & Web |
CURLNMBS.GetInfoPrimaryPort as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CURL | MBS CURL Plugin | 15.2 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop, Console & Web |
CURLNMBS.GetInfoProtocol as integer Deprecated
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CURL | MBS CURL Plugin | 18.2 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop, Console & Web |
See kProtocol* constants.
CURLNMBS.GetInfoProxyAuthAvail as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CURL | MBS CURL Plugin | 9.8 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop, Console & Web |
The Lasterror property is set. 0 for success.
CURLNMBS.GetInfoProxyError as integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CURL | MBS CURL Plugin | 20.5 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop, Console & Web |
CURLNMBS.GetInfoProxySSLVerifyResult as integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CURL | MBS CURL Plugin | 18.2 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop, Console & Web |
receive the result of the certificate verification that was requested (using the OptionProxySSLVerifyPeer option. This is only used for HTTPS proxies.
CURLNMBS.GetInfoRedirectCount as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CURL | MBS CURL Plugin | 9.8 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop, Console & Web |
The Lasterror property is set. 0 for success.
CURLNMBS.GetInfoRedirectTime as Double
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CURL | MBS CURL Plugin | 9.8 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop, Console & Web |
The Lasterror property is set. 0 for success.
RedirectTime contains the complete execution time for multiple redirections. (Added in 7.9.7)
CURLNMBS.GetInfoRedirectURL as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CURL | MBS CURL Plugin | 15.2 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop, Console & Web |
CURLNMBS.GetInfoReferer as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CURL | MBS CURL Plugin | 21.2 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop, Console & Web |
CURLNMBS.GetInfoRequestSize as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CURL | MBS CURL Plugin | 9.8 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop, Console & Web |
The Lasterror property is set. 0 for success.
This is so far only for HTTP requests. Note that this may be more than one request if FOLLOWLOCATION is true.
CURLNMBS.GetInfoResponseCode as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CURL | MBS CURL Plugin | 9.8 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop, Console & Web |
The Lasterror property is set. 0 for success.
This will be zero if no server response code has been received. Note that a proxy's CONNECT response should be read with GetInfoHTTPConnectCode and not this.
With HTTP transfer, a successful transfer reports 200 here. If the page is not found, you get 404. Or any other HTTP Response code.
CURLNMBS.GetInfoRetryAfter as integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CURL | MBS CURL Plugin | 20.4 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop, Console & Web |
Receive the number of seconds the HTTP server suggesets the client should wait until the next request is issued.
The information from the "Retry-After:" header.
While the HTTP header might contain a fixed date string, the RetryAfter will always return number of seconds to wait - or zero if there was no header or the header couldn't be parsed.
CURLNMBS.GetInfoRTSPClientCSEQ as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CURL | MBS CURL Plugin | 15.2 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop, Console & Web |
CURLNMBS.GetInfoRTSPCSEQRecv as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CURL | MBS CURL Plugin | 15.2 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop, Console & Web |
CURLNMBS.GetInfoRTSPServerCSEQ as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CURL | MBS CURL Plugin | 15.2 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop, Console & Web |
CURLNMBS.GetInfoRTSPSessionID as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CURL | MBS CURL Plugin | 15.2 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop, Console & Web |
CURLNMBS.GetInfoScheme as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CURL | MBS CURL Plugin | 18.2 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop, Console & Web |
CURLNMBS.GetInfoSizeDownload as Double
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CURL | MBS CURL Plugin | 9.8 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop, Console & Web |
The Lasterror property is set. 0 for success.
The amount is only for the latest transfer and will be reset again for each new transfer.
CURLNMBS.GetInfoSizeUpload as Double
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CURL | MBS CURL Plugin | 9.8 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop, Console & Web |
The Lasterror property is set. 0 for success.
CURLNMBS.GetInfoSpeedDownload as Double
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CURL | MBS CURL Plugin | 9.8 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop, Console & Web |
The Lasterror property is set. 0 for success.
CURLNMBS.GetInfoSpeedUpload as Double
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CURL | MBS CURL Plugin | 9.8 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop, Console & Web |
The Lasterror property is set. 0 for success.
CURLNMBS.GetInfoSSLEngines as CURLNListMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CURL | MBS CURL Plugin | 9.8 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop, Console & Web |
The Lasterror property is set. 0 for success.
Note that engines are normally implemented in separate dynamic libraries. Hence not all the returned engines may be available at run-time.
CURLNMBS.GetInfoSSLVerifyResult as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CURL | MBS CURL Plugin | 9.8 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop, Console & Web |
The Lasterror property is set. 0 for success.
CURLNMBS.GetInfoStartTransferTime as Double
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CURL | MBS CURL Plugin | 9.8 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop, Console & Web |
The Lasterror property is set. 0 for success.
This includes the pretransfer time and also the time the server needs to calculate the result.
CURLNMBS.GetInfoTotalTime as Double
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CURL | MBS CURL Plugin | 9.8 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop, Console & Web |
The Lasterror property is set. 0 for success.
CURLNMBS.OpenMTInputFile(file as folderitem, Offset as Integer = 0) as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CURL | MBS CURL Plugin | 11.2 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop, Console & Web |
The read event is not called with PerformMT.
Offset is helpful for HTTP PUT requests with range, so you can start with an offset.
With 15.2 version of plugin, this also works with Perform.
Must be called before Perform or PerformMT, so we can stream data from the file.
The file is closed automatically when Perform methods finish their work.
The function returns false in case of an error, e.g. if file is already open by another application, the foleritem/path is invalid, the offset is negative or we can't determinate the file size.
It may be wise to have a fallback in your code to use a binarystream in that case (if that one can read the file) and then read all the data in a string and put into the InputData property.
See also:
CURLNMBS.OpenMTInputFile(Path as String, Offset as Integer = 0) as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CURL | MBS CURL Plugin | 19.5 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop, Console & Web |
The read event is not called with PerformMT.
Offset is helpful for HTTP PUT requests with range, so you can start with an offset.
Must be called before Perform or PerformMT, so we can stream data from the file.
The file is closed automatically when Perform methods finish their work.
The function returns false in case of an error, e.g. if file is already open by another application, the foleritem/path is invalid, the offset is negative or we can't determinate the file size.
It may be wise to have a fallback in your code to use a binarystream in that case (if that one can read the file) and then read all the data in a string and put into the InputData property.
See also:
The items on this page are in the following plugins: MBS CURL Plugin.