Visual Basic 6.0
Visual Basic 6.0
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 Visual Basic 6.0 Downloads
Dim success As Long
success = 0
' This example assumes the Chilkat API to have been previously unlocked.
' See Global Unlock Sample for sample code.
Dim http As New ChilkatHttp
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 <> 1) Then
Debug.Print http.LastErrorText
Exit Sub
End If
Debug.Print "OK!"