Download A Url

Problem

  • There is a URL on the internet pointing to a resource like an image or some other data (e.g. html webpage) that is needed.

Solution

Sample Code

WebClient client = new WebClient();
client.DownloadFile(@"http://slashdot.org", "slashdot-index.html");

Link

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License