Skip to content

Instantly share code, notes, and snippets.

@bradphelan
Created April 14, 2014 11:37
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 bradphelan/10640228 to your computer and use it in GitHub Desktop.
Save bradphelan/10640228 to your computer and use it in GitHub Desktop.
public static Task<string> httpRequest(HttpWebRequest request)
{
var httpClient = new HttpClient();
var response = await httpClient.GetAsync("http://www.google.com")
return response.Content.ReadAsStringAsync();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment