Sample code for 30+ languages & platforms
Xojo Plugin

Example: Http.QuickGetSb method

Demonstrates the QuickGetSb method.

Chilkat Xojo Plugin Downloads

Xojo Plugin
Dim success As Boolean
success = False

Dim http As New Chilkat.Http

// Send the HTTP GET and return the content in a StringBuilder
Dim sb As New Chilkat.StringBuilder
success = http.QuickGetSb("https://www.chilkatsoft.com/helloWorld.json",sb)
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(sb.GetAsString())
    End If

    Return
End If

// The downloaded content:
System.DebugLog(sb.GetAsString())
System.DebugLog("Success")