Skip to content
Andrew Lambert edited this page May 20, 2015 · 25 revisions

This example performs a synchronous HTTP GET request on the calling thread.

Dim curl As New cURLClient
If curl.Get("http://www.example.com/") Then
  If curl.GetStatusCode = 200 Then
    Dim page As String = curl.GetDownloadedData()
  Else
    MsgBox("HTTP Status: " + Str(curl.GetStatusCode))
  End If
Else
  MsgBox(libcURL.FormatError(curl.LastError))
End If
Clone this wiki locally