📜  postasync json C# - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:29.885000             🧑  作者: Mango

代码示例1
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;
                }
            }