MultipartFormDataContent content = new MultipartFormDataContent(); content.Add(new StringContent(HttpUtility.UrlEncode(url)), "url"); //前面的为参数的值,后面的为参数name var client = _clientFactory.CreateClient(); using var httpResponse = client.PostAsync(_wxApiUrl, content).GetAwaiter().GetResult(); var result = JsonConvert.DeserializeObject<WxApiResult>(httpResponse.Content.ReadAsStringAsync().GetAwaiter().GetResult());