Last active
November 12, 2015 16:18
-
-
Save premsh/51e83909c74193db7d7c 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
using (var client = new HttpClient()) | |
{ | |
var message = new HttpRequestMessage(HttpMethod.Post, url); | |
message.Headers.Add("Authorization", authKey); | |
message.Headers.Add("Audit",auditKey); | |
message.Content = new StringContent(content, new UTF8Encoding(), "application/json"); | |
var response = client.SendAsync(message).Result; | |
return response.Content.ReadAsStringAsync().Result; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment