Platforms to show: All Mac Windows Linux Cross-Platform

Back to CURLSMBS class.

Next items

CURLSMBS.GetInfoActiveSocket as integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CURL MBS CURL Plugin 18.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Receive the active socket used by this curl session.

If the socket is no longer valid, -1 is returned. When you finish working with the socket, the Destructor closes the socket and cleanup other resources associated with the handle. This is typically used in combination with OptionConnectOnly.

This option was added as a replacement for GetInfoLastSocket since that one isn't working on all platforms.

CURLSMBS.GetInfoAppConnectTime as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CURL MBS CURL Plugin 15.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The time stamp when app connected.

CURLSMBS.GetInfoCAInfo as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CURL MBS CURL Plugin 22.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Queries default CAInfo value.

CURLSMBS.GetInfoCAPath as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CURL MBS CURL Plugin 22.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Queries default CAPath value.

CURLSMBS.GetInfoCertInfo as CURLSListMBS()

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CURL MBS CURL Plugin 15.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Queries information on the certificate chain.
Example
Var c as new CURLSMBS

// do some transfer
c.OptionURL = "https://www.mbsplugins.de/"
c.OptionCertInfo = true
Var e as Integer = c.perform

// query certificate info
Var lists() as CURLSListMBS = c.GetInfoCertInfo

for each l as CURLSListMBS in lists
MsgBox Join(l, EndOfLine)
next

MsgBox c.DebugMessages

Please set OptionCertInfo first.

CURLSMBS.GetInfoConditionUnmet as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CURL MBS CURL Plugin 15.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Return if the time condition prevented the document to get transferred.

CURLSMBS.GetInfoConnectTime as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CURL MBS CURL Plugin 9.8 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The time, in seconds, it took from the start until the connect to the remote host (or proxy) was completed.

The Lasterror property is set. 0 for success.

CURLSMBS.GetInfoContentLengthDownload as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CURL MBS CURL Plugin 9.8 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The content-length of the download.

The Lasterror property is set. 0 for success.
This is the value read from the Content-Length: field.

Some examples using this method:

CURLSMBS.GetInfoContentLengthUpload as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CURL MBS CURL Plugin 9.8 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The specified size of the upload.

The Lasterror property is set. 0 for success.

CURLSMBS.GetInfoContentType as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CURL MBS CURL Plugin 9.8 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The content-type of the downloaded object.

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.

Some examples using this method:

CURLSMBS.GetInfoCookieList as CURLSListMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CURL MBS CURL Plugin 9.8 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
A linked-list of all cookies CURL knows (expired ones, too).

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.

CURLSMBS.GetInfoEarlyDataSent as integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CURL MBS CURL Plugin 25.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Get the number of bytes sent as TLS early data.

TLS early data is only attempted when kSSLOptionEarlyData is set for the transfer. In addition, it is only used by libcurl when a TLS session exists that announces support.

The amount is negative when the sent data was rejected by the server. TLS allows a server that announces support for early data to reject any attempt to use it at its own discretion. When for example 127 bytes had been sent, but were rejected, it reports -127 as the amount "sent".

CURLSMBS.GetInfoEffectiveMethod as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CURL MBS CURL Plugin 20.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Get the last used effective HTTP method.

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.

CURLSMBS.GetInfoEffectiveURL as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CURL MBS CURL Plugin 9.8 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The last used effective URL.

The Lasterror property is set. 0 for success.

CURLSMBS.GetInfoFileTime as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CURL MBS CURL Plugin 9.8 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
the remote time of the retrieved document (in number of seconds since 1 jan 1970 in the GMT/UTC time zone).
Example
// init CURL with options
Var d as new CURLSMBS
d.OptionFileTime = true
d.OptionURL = "http://www.monkeybreadsoftware.de/images/mbs.jpg"

// run query
Var e as Integer = d.Perform

// calculate date object
Var da as new date(1970,1,1,0,0,0)
da.TotalSeconds = da.TotalSeconds + d.GetInfoFileTime

// show date
ResultText.text=str(d.GetInfoFileTime)+" "+da.ShortDate+" "+da.ShortTime

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)

CURLSMBS.GetInfoFTPEntryPath as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CURL MBS CURL Plugin 15.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns a string holding the path of the entry path.

That is the initial path libCURL ended up in when logging on to the remote FTP server.
Empty string if unknown.

CURLSMBS.GetInfoHeaderSize as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CURL MBS CURL Plugin 9.8 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The total size of all the headers received.

The Lasterror property is set. 0 for success.

CURLSMBS.GetInfoHTTPAuthAvail as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CURL MBS CURL Plugin 9.8 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
A bitmask indicating the authentication method(s) available.

The Lasterror property is set. 0 for success.
The meaning of the bits is explained in the HTTPAuth option.

CURLSMBS.GetInfoHTTPConnectCode as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CURL MBS CURL Plugin 9.8 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The last received proxy response code to a CONNECT request.

The Lasterror property is set. 0 for success.

CURLSMBS.GetInfoHTTPVersion as integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CURL MBS CURL Plugin 18.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Get the http version used in the connection.

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.

CURLSMBS.GetInfoLastSocket as Integer   Deprecated

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CURL MBS CURL Plugin 15.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
This item is deprecated and should no longer be used. You can use GetInfoActiveSocket instead.
Receive the last socket used by this CURL session.

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.

CURLSMBS.GetInfoLocalIP as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CURL MBS CURL Plugin 15.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Queries local IP.
Example
Var c as new CURLSMBS

// do some transfer
c.OptionURL = "http://www.mbsplugins.de/"
Var e as Integer = c.perform

// now check local IP
MsgBox c.GetInfoLocalIP

CURLSMBS.GetInfoLocalPort as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CURL MBS CURL Plugin 15.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Return the local port of the most recent (primary) connection.
Example
Var c as new CURLSMBS

// do some transfer
c.OptionURL = "http://www.mbsplugins.de/"
Var e as Integer = c.perform

// now check local IP and port
MsgBox c.GetInfoLocalIP+":"+str(c.GetInfoLocalPort)

CURLSMBS.GetInfoNameLookupTime as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CURL MBS CURL Plugin 9.8 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The time, in seconds, it took from the start until the name resolving was completed.

The Lasterror property is set. 0 for success.

CURLSMBS.GetInfoNumConnects as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CURL MBS CURL Plugin 9.8 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
How many new connections libCURL had to create to achieve the previous transfer.

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.

CURLSMBS.GetInfoOSErrno as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CURL MBS CURL Plugin 9.8 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The errno variable from a connect failure.

The Lasterror property is set. 0 for success.

CURLSMBS.GetInfoPreTransferTime as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CURL MBS CURL Plugin 9.8 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The time, in seconds, it took from the start until the file transfer is just about to begin.

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.

CURLSMBS.GetInfoPrimaryIP as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CURL MBS CURL Plugin 15.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Return the ip address of the most recent (primary) connection.
Example
Var c as new CURLSMBS

// do some transfer
c.OptionURL = "http://www.mbsplugins.de/"
Var e as Integer = c.perform

// now check primary IP and port
MsgBox c.GetInfoPrimaryIP+":"+str(c.GetInfoPrimaryport)

CURLSMBS.GetInfoPrimaryPort as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CURL MBS CURL Plugin 15.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Return the (remote) port of the most recent (primary) connection.
Example
Var c as new CURLSMBS

// do some transfer
c.OptionURL = "http://www.mbsplugins.de/"
Var e as Integer = c.perform

// now check primary IP and port
MsgBox c.GetInfoPrimaryIP+":"+str(c.GetInfoPrimaryport)

CURLSMBS.GetInfoProtocol as integer   Deprecated

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CURL MBS CURL Plugin 18.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
This item is deprecated and should no longer be used.
Get the protocol used in the connection.

See kProtocol* constants.

CURLSMBS.GetInfoProxyAuthAvail as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CURL MBS CURL Plugin 9.8 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
A bitmask indicating the authentication method(s) available for your proxy authentication.

The Lasterror property is set. 0 for success.

CURLSMBS.GetInfoProxyError as integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CURL MBS CURL Plugin 20.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Queries proxy error code.

CURLSMBS.GetInfoProxySSLVerifyResult as integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CURL MBS CURL Plugin 18.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Get the result of the proxy certificate verification.

receive the result of the certificate verification that was requested (using the OptionProxySSLVerifyPeer option. This is only used for HTTPS proxies.

CURLSMBS.GetInfoRedirectCount as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CURL MBS CURL Plugin 9.8 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The total number of redirections that were actually followed.

The Lasterror property is set. 0 for success.

CURLSMBS.GetInfoRedirectTime as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CURL MBS CURL Plugin 9.8 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
the total time, in seconds, it took for all redirection steps include name lookup, connect, pretransfer and transfer before final transaction was started.

The Lasterror property is set. 0 for success.
RedirectTime contains the complete execution time for multiple redirections. (Added in 7.9.7)

CURLSMBS.GetInfoRedirectURL as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CURL MBS CURL Plugin 15.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The redirection URL.

CURLSMBS.GetInfoReferer as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CURL MBS CURL Plugin 21.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Queries referrer text.

CURLSMBS.GetInfoRequestSize as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CURL MBS CURL Plugin 9.8 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The total size of the issued requests.

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.

CURLSMBS.GetInfoResponseCode as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CURL MBS CURL Plugin 9.8 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The last received HTTP or FTP code.

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.

Some examples using this method:

CURLSMBS.GetInfoRetryAfter as integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CURL MBS CURL Plugin 20.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns the Retry-After retry delay.

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.

CURLSMBS.GetInfoRTSPClientCSEQ as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CURL MBS CURL Plugin 15.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Query RTSP Client sequence counter.

CURLSMBS.GetInfoRTSPCSEQRecv as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CURL MBS CURL Plugin 15.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Query RTSP sequence counter received.

CURLSMBS.GetInfoRTSPServerCSEQ as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CURL MBS CURL Plugin 15.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Query RTSP Server sequence counter.

CURLSMBS.GetInfoRTSPSessionID as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CURL MBS CURL Plugin 15.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Query RTSP session ID.

CURLSMBS.GetInfoScheme as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CURL MBS CURL Plugin 18.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Get the URL scheme (sometimes called protocol) used in the connection

CURLSMBS.GetInfoSizeDownload as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CURL MBS CURL Plugin 9.8 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The total amount of bytes that were downloaded.

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.

Some examples using this method:

CURLSMBS.GetInfoSizeUpload as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CURL MBS CURL Plugin 9.8 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The total amount of bytes that were uploaded.

The Lasterror property is set. 0 for success.

CURLSMBS.GetInfoSpeedDownload as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CURL MBS CURL Plugin 9.8 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The average download speed that CURL measured for the complete download.

The Lasterror property is set. 0 for success.

CURLSMBS.GetInfoSpeedUpload as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CURL MBS CURL Plugin 9.8 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The average upload speed that CURL measured for the complete upload.

The Lasterror property is set. 0 for success.

Next items

The items on this page are in the following plugins: MBS CURL Plugin.


The biggest plugin in space...