AutoIt
AutoIt
HTTP Download from URL with IP Address and Port
See more HTTP Examples
Downloads a file from a URL using an IP address and port.Chilkat AutoIt Downloads
Local $bSuccess = False
; This example assumes the Chilkat API to have been previously unlocked.
; See Global Unlock Sample for sample code.
$oHttp = ObjCreate("Chilkat.Http")
$oHttp.SetRequestHeader "Host","chilkatsoft.com"
Local $sLocalFilePath = "/temp/hamlet.zip"
$bSuccess = $oHttp.Download("http://107.180.46.206:80/hamlet.zip",$sLocalFilePath)
If ($bSuccess <> True) Then
ConsoleWrite($oHttp.LastErrorText & @CRLF)
Exit
EndIf
ConsoleWrite("OK!" & @CRLF)