HttpClient实现POST参数提交
HttpClient client = new HttpClient(); //使用FormUrlEncodedContent做HttpContent var content = new FormUrlEncodedContent(new Dictionary<string, string>() { { "q", name}, { "from", "zh"}, { "to", "en"} }); var response = await client.PostAsync(url, content); var result = await response.Content.ReadAsAsync<MessageJson2>();