libcURL.EasyHandle.GetInfo - charonn0/RB-libcURL GitHub Wiki
libcURL.EasyHandle.GetInfo
Method Signatures
Function GetInfo(InfoType As Integer) As Variant
Function GetInfo(InfoType As Integer, Buffer As MemoryBlock) As Boolean
Parameters
GetInfo(Integer)
| Name | Type | Comment |
|---|---|---|
| InfoType | Integer | The type of information being requested. |
GetInfo(Integer, MemoryBlock)
| Name | Type | Comment |
|---|---|---|
| InfoType | Integer | The type of information being requested. |
| Buffer | MemoryBlock | A buffer which is large enough to contain the information. |
Return value
GetInfo(Integer)
Returns a Variant suitable to contain the InfoType being requested. If the InfoType is not among the values known by this function, a TypeMismatchException will be raised. Nil is a legal return value; its meaning varies according to the InfoType requested. Check LastError if the return value is unexpectedly Nil.
GetInfo(Integer, MemoryBlock)
If the operation succeeded then this function returns True and the requested information is copied into the Buffer. Otherwise this function returns False and the error code is stored in LastError.
Remarks
This method returns various data about the most recently completed connection (successful or not.) As such, it is not useful to call this method before the first connection attempt.
See also
- EasyHandle.SetOption
- curl_easy_getinfo in the libcURL documentation.