Sample code for 30+ languages & platforms
AutoIt

Transition from Http.PostJson to Http.HttpStr

Provides instructions for replacing deprecated PostJson method calls with HttpStr.

Chilkat AutoIt Downloads

AutoIt
Local $bSuccess = False

$oHttp = ObjCreate("Chilkat.Http")

Local $sUrl = "https://example.com/something"
Local $sJsonText = "{ ... }"

; ------------------------------------------------------------------------
; The PostJson method is deprecated:

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

; ...
; ...

; ------------------------------------------------------------------------
; Do the equivalent using HttpStr.
; 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.HttpStr("POST",$sUrl,$sJsonText,"utf-8","application/json",$oResponseOut)
If ($bSuccess = False) Then
    ConsoleWrite($oHttp.LastErrorText & @CRLF)
    Exit
EndIf