Skip to content

libcURL.EasyHandle.GetInfo

Andrew Lambert edited this page Sep 11, 2015 · 17 revisions

#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 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.

##Notes Calls curl_easy_getinfo. 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

Clone this wiki locally