Skip to content

libcURL.Info.InfoTypeIterator

Andrew Lambert edited this page Jan 31, 2024 · 3 revisions

libcURL.Info.InfoTypeIterator

Class Declaration

 Protected Class InfoTypeIterator

Remarks

This class iterates over a list of all known types of InfoType.

Methods

Properties

Example

This example performs a request and then collects all the available metadata into a Dictionary:

  Dim curl As New cURLClient
  If curl.Get("https://www.example.com/") Then
    Dim iter As New libcURL.Info.InfoTypeIterator
    Dim info As New Dictionary
    Do
      Dim name As String = iter.CurrentInfoType.Name
      Dim value As Variant = curl.GetInfo(iter.CurrentInfoType)
      info.Value(name) = value
    Loop Until Not iter.MoveNext()
  End If
Clone this wiki locally