Sample code for 30+ languages & platforms
AutoIt

Transition from Http.PostJson3 to Http.HttpJson

Provides instructions for replacing deprecated PostJson3 method calls with HttpJson.

Chilkat AutoIt Downloads

AutoIt
Local $bSuccess = False

$oHttp = ObjCreate("Chilkat.Http")

Local $sUrl = "https://example.com/something"
Local $sContentType = "application/json"
$oJson = ObjCreate("Chilkat.JsonObject")
$oJson.LoadFile("C:/temp/requestBody.json")

; ------------------------------------------------------------------------
; The PostJson3 method is deprecated:

Local $oResponseObj = $oHttp.PostJson3($sUrl,$sContentType,$oJson)
If ($oHttp.LastMethodSuccess = False) Then
    ConsoleWrite($oHttp.LastErrorText & @CRLF)
    Exit
EndIf

; ...
; ...

; ------------------------------------------------------------------------
; Do the equivalent using HttpJson.
; Your application creates a new, empty HttpResponse object which is passed 
; in the last argument and filled upon success.

$oResponseOut = ObjCreate("Chilkat.HttpResponse")
$bSuccess = $oHttp.HttpJson("POST",$sUrl,$oJson,$sContentType,$oResponseOut)
If ($bSuccess = False) Then
    ConsoleWrite($oHttp.LastErrorText & @CRLF)
    Exit
EndIf