var data = Encoding.UTF8.GetBytes("{ \"y\": 5, \"x\": 3}");
var content = new ByteArrayContent(data);
content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json");
var response = new HttpClient().PostAsync(_AddUrl, content).Result;
var responseContent = response.Content.ReadAsStringAsync().Result;

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-10-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-15
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-07
相关资源
相似解决方案