Created
April 14, 2014 11:37
-
-
Save bradphelan/10640228 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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