AutoIt Requires Chilkat v11.0.0+
AutoIt
Transition from Http.PBinary to Http.HttpBinary
See more HTTP Examples
Provides instructions for replacing deprecated PBinary method calls with HttpBinary.Chilkat AutoIt Downloads
Local $bSuccess = False
$oHttp = ObjCreate("Chilkat.Http")
Local $sVerb = "POST"
Local $sUrl = "https://example.com/"
Local $oByteData
Local $sContentType = "application/octet-stream"
; ------------------------------------------------------------------------
; The PBinary method is deprecated:
Local $oResponseObj = $oHttp.PBinary($sVerb,$sUrl,$oByteData,$sContentType,False,False)
If ($oHttp.LastMethodSuccess = False) Then
ConsoleWrite($oHttp.LastErrorText & @CRLF)
Exit
EndIf
; ...
; ...
; ------------------------------------------------------------------------
; Do the equivalent using HttpBinary.
; 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.HttpBinary($sVerb,$sUrl,$oByteData,$sContentType,$oResponseOut)
If ($bSuccess = False) Then
ConsoleWrite($oHttp.LastErrorText & @CRLF)
Exit
EndIf