Download and save a web page


This VB.NET sample shows how to download a web page and save to a local file using the WebClient class. This sample code downloads a web page from abc.com and saves to a local file (c:\abc.html) in your machine.

Dim webClient As New System.Net.WebClient
webClient.DownloadFile("http://www.abc.com/index.aspx", "C:\spider.html")

Comments