Reading GET response as string using System.Net.HttpClient

suggest change

HttpClient is available through NuGet: Microsoft HTTP Client Libraries.

string requestUri = "";
string responseData;

using (var client = new HttpClient())
    using(var response = client.GetAsync(requestUri).Result)
       responseData = response.Content.ReadAsStringAsync().Result;

Feedback about page:

Optional: your email if you want me to get back to you:

Table Of Contents