class Program {
static void Main(string[] args) {
HttpClient client = new HttpClient();
var content = new StringContent("=Here is my input string");
content.Headers.ContentType = new MediaTypeHeaderValue("application/x-www-form-urlencoded");
client.PostAsync("http://localhost:2451/api/values", content)
.ContinueWith(task => {
var response = task.Result;
Console.WriteLine(response.Content.ReadAsStringAsync().Result);
});
Console.ReadLine();
}
}