


Using (var stringContent = new StringContent(json, Encoding.UTF8, "application/json")) Var json = JsonConvert.SerializeObject(content) Using (var request = new HttpRequestMessage(HttpMethod.Post, Url)) The following code is little more evolved version of what we can see in most projects : private static async Task PostBasicAsync(object content, CancellationToken cancellationToken) This time we will go a bit further and implement POST calls. We now know how to create efficient HTTP Get calls with HttpClient and JSON.NET.

Before going further I highly recommend that you read the previous post explaining how to create efficient GET calls since it serves as this post starting point.
