c# check empty httpcontent code example Example: c# httpclient post no content Task<HttpResponseMessage> task = client.PostAsync(url, null);