Sample code for 30+ languages & platforms
AutoIt

Example: Http.QuickGetSb method

Demonstrates the QuickGetSb method.

Chilkat AutoIt Downloads

AutoIt
Local $bSuccess = False

$oHttp = ObjCreate("Chilkat.Http")

; Send the HTTP GET and return the content in a StringBuilder
$oSb = ObjCreate("Chilkat.StringBuilder")
$bSuccess = $oHttp.QuickGetSb("https://www.chilkatsoft.com/helloWorld.json",$oSb)
If ($oHttp.LastMethodSuccess = False) Then
    If ($oHttp.LastStatus = 0) Then
        ; Communications error.  We did not get a response.
        ConsoleWrite($oHttp.LastErrorText & @CRLF)
    Else
        ConsoleWrite("Response status code: " & $oHttp.LastStatus & @CRLF)
        ConsoleWrite("Response body error text:" & @CRLF)
        ConsoleWrite($oSb.GetAsString() & @CRLF)
    EndIf

    Exit
EndIf

; The downloaded content:
ConsoleWrite($oSb.GetAsString() & @CRLF)
ConsoleWrite("Success" & @CRLF)