VB.NET
VB.NET
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 VB.NET Downloads
Dim success As Boolean = 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 = "/temp/hamlet.zip"
success = http.Download("http://107.180.46.206:80/hamlet.zip",localFilePath)
If (success <> True) Then
Debug.WriteLine(http.LastErrorText)
Exit Sub
End If
Debug.WriteLine("OK!")