Sample code for 30+ languages & platforms
AutoIt

Transition from Http.PostXml to Http.HttpStr

Provides instructions for replacing deprecated PostXml method calls with HttpStr.

Chilkat AutoIt Downloads

AutoIt
Local $bSuccess = False

$oHttp = ObjCreate("Chilkat.Http")

Local $sUrl = "https://example.com/something"
Local $sRequestBodyXml = "<something>...</something>"
Local $sCharset = "utf-8"

; ------------------------------------------------------------------------
; The PostXml method is deprecated:

Local $oResponseObj = $oHttp.PostXml($sUrl,$sRequestBodyXml,$sCharset)
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,$sRequestBodyXml,$sCharset,"application/xml",$oResponseOut)
If ($bSuccess = False) Then
    ConsoleWrite($oHttp.LastErrorText & @CRLF)
    Exit
EndIf