Xojo Plugin
Xojo Plugin
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 Xojo Plugin Downloads
Dim success As Boolean
success = False
// This example assumes the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.
Dim http As New Chilkat.Http
http.SetRequestHeader "Host","chilkatsoft.com"
Dim localFilePath As String
localFilePath = "/temp/hamlet.zip"
success = http.Download("http://107.180.46.206:80/hamlet.zip",localFilePath)
If (success <> True) Then
System.DebugLog(http.LastErrorText)
Return
End If
System.DebugLog("OK!")