You need to use the webclient class http://msdn.microsoft.com/en-us/library/system.net.webclient.aspx.
This should help you out:
using System;
using System.Net;
using Myapp.Properties;
namespace MyApp
{
public class Test
{
static void Main(string[] args)
{
string website ="http://www.fryan0911.com/webclientsample.zip";
string downloadfolder = Settings.Default.DownloadFolder;
try
{
WebClient wc = new WebClient();
wc.DownloadFile(website, downloadfolder);
Console.WriteLine("Web file has been downloaded to " + downloadfolder);
}
catch (WebException e)
{
Console.WriteLine(e.Message);
}
Console.ReadKey();
}
}
}
code borrowed from:
http://www.fryan0911.com/2009/03/c-download-file-from-website-using-web.html