-
-
Notifications
You must be signed in to change notification settings - Fork 11
HTTP GET Example
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
Wiki home | Project page | Bugs | Become a sponsor
Text and code examples are Copyright ©2014-24 Andrew Lambert, offered under the CC BY-SA 3.0 License.