
C# Get和Post请求与响应
方法一(推荐使用)public string HttpGet(string url){ using (HttpClient client = new HttpClient()) { var response = client.GetAsync(url).Result; if (response.IsSuccessStatusCode) { var content = response.Content.Re…
方法一(推荐使用)public string HttpGet(string url){ using (HttpClient client = new HttpClient()) { var response = client.GetAsync(url).Result; if (response.IsSuccessStatusCode) { var content = response.Content.Re…