📅  最后修改于: 2022-03-11 15:04:29.885000             🧑  作者: Mango
using (var client = new HttpClient())
{
using (var content = new StringContent(json, Encoding.UTF8, "application/json"))
{
var result = client.PostAsync(url, content).Result; // use await instead of result
return;
}
}