Sample code for 30+ languages & platforms
AutoIt

Transition from Http.PBinaryBd to Http.HttpBd

Provides instructions for replacing deprecated PBinaryBd method calls with HttpBd.

Chilkat AutoIt Downloads

AutoIt
Local $bSuccess = False

$oHttp = ObjCreate("Chilkat.Http")

Local $sVerb = "POST"
Local $sUrl = "https://example.com/"
$oBdRequestBody = ObjCreate("Chilkat.BinData")
Local $sContentType = "application/octet-stream"

; ------------------------------------------------------------------------
; The PBinaryBd method is deprecated:

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

; ...
; ...

; ------------------------------------------------------------------------
; Do the equivalent using HttpBd.
; 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.HttpBd($sVerb,$sUrl,$oBdRequestBody,$sContentType,$oResponseOut)
If ($bSuccess = False) Then
    ConsoleWrite($oHttp.LastErrorText & @CRLF)
    Exit
EndIf