Skip to content
Andrew Lambert edited this page Nov 5, 2023 · 11 revisions

Synchronous

This example synchronously performs an HTTP HEAD request.

  Dim curl As New cURLClient
  Dim headers As InternetHeaders
  If curl.Head("http://www.example.com/") Then
    headers = curl.ResponseHeaders
  End If

Asynchronous

This example asynchronously performs an HTTP HEAD request.

  Dim curl As New cURLClient
  curl.Head("http://www.google.com/")
  Dim headers As InternetHeaders
  Do
    App.DoEvents() ' async transfers require an event loop!
  Loop Until curl.IsTransferComplete
  headers = curl.ResponseHeaders

See also

Clone this wiki locally