Skip to content

Instantly share code, notes, and snippets.

@mlafleur
Created July 24, 2013 20:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mlafleur/3d8413879e02a8c9dacb to your computer and use it in GitHub Desktop.
Save mlafleur/3d8413879e02a8c9dacb to your computer and use it in GitHub Desktop.
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