AutoIt Requires Chilkat v11.0.0+
AutoIt
Transition from Http.PutBinary to Http.HttpBinary
Provides instructions for replacing deprecated PutBinary method calls with HttpBinary.Chilkat AutoIt Downloads
Local $bSuccess = False
$oHttp = ObjCreate("Chilkat.Http")
Local $sVerb = "PUT"
Local $sUrl = "https://example.com/"
Local $oByteData
Local $sContentType = "application/octet-stream"
; ------------------------------------------------------------------------
; The PutBinary method is deprecated:
Local $sResponseBody = $oHttp.PutBinary($sUrl,$oByteData,$sContentType,False,False)
If ($oHttp.LastMethodSuccess = False) Then
ConsoleWrite($oHttp.LastErrorText & @CRLF)
Exit
EndIf
; ...
; ...
; ------------------------------------------------------------------------
; Do the equivalent using HttpBinary.
$oResponseOut = ObjCreate("Chilkat.HttpResponse")
$bSuccess = $oHttp.HttpBinary($sVerb,$sUrl,$oByteData,$sContentType,$oResponseOut)
If ($bSuccess = False) Then
ConsoleWrite($oHttp.LastErrorText & @CRLF)
Exit
EndIf
$sResponseBody = $oResponseOut.BodyStr