string milosevCom = "http://www.milosev.com";
string doc = "";
using (System.Net.WebClient client = new System.Net.WebClient())
{
doc = client.DownloadString(milosevCom);
}
Console.WriteLine(doc);
Console.ReadKey();
WebClient is from .NET 6 obsolete. Example of WebClient
- Details
- Written by: Stanko Milosev
- Category: Code snippets
- Hits: 2642
Just a small example of WebClient: