Reading GET response as string using System.Net.WebClient

Download .net eBook

Example

string requestUri = "http://www.example.com";
string responseData;

using (var client = new WebClient())
{    
    responseData = client.DownloadString(requestUri);
}

Stats

Contributors: 1
2015-11-16
Licensed under: CC-BY-SA

Not affiliated with Stack Overflow
Rip Tutorial: info@zzzprojects.com

Download eBook