Skip to content
Andrew Lambert edited this page Jun 12, 2015 · 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.GetResponseHeaders
  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.GetResponseHeaders
Clone this wiki locally