Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
private async void HttpClientCall()
HttpClient httpClient = new HttpClient();
HttpResponseMessage response = await httpClient.GetAsync("http://yoursitehere/");
string responseAsString = await response.Content.ReadAsStringAsync();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment