HttpClient client = new HttpClient(); client.BaseAddress = new Uri("http://localhost:1524/"); client.DefaultRequestHeaders.Accept.Add( new MediaTypeWithQualityHeaderValue("application/json")); HttpResponseMessage response = client.PostAsJsonAsync("api/Bazooka").Result;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)