Sample code for 30+ languages & platforms
Xojo Plugin

Example: Http.QuickGetStr method

Demonstrates the QuickGetStr method.

Chilkat Xojo Plugin Downloads

Xojo Plugin
Dim http As New Chilkat.Http

// Keep the response body if there's an error.
http.KeepResponseBody = True

// Send the HTTP GET and return the content in a string.
Dim str As String
str = http.QuickGetStr("https://www.chilkatsoft.com/helloWorld.json")
If (http.LastMethodSuccess = False) Then
    If (http.LastStatus = 0) Then
        // Communications error.  We did not get a response.
        System.DebugLog(http.LastErrorText)
    Else
        System.DebugLog("Response status code: " + Str(http.LastStatus))
        System.DebugLog("Response body error text:")
        System.DebugLog(http.LastResponseBody)
    End If

    Return
End If

System.DebugLog(str)
System.DebugLog("Success")