标签:enc new div air tpc dom res response syn
using (var client = new HttpClient()) { var values = new List<KeyValuePair<string, string>>(); values.Add(new KeyValuePair<string, string>("thing1", "hello")); values.Add(new KeyValuePair<string, string>("thing2 ", "world")); var content = new FormUrlEncodedContent(values); var response = await client.PostAsync("http://www.mydomain.com/recepticle.aspx", content); var responseString = await response.Content.ReadAsStringAsync(); }
.net HttpClient 发送 form-urlencoded 数据
标签:enc new div air tpc dom res response syn
原文地址:https://www.cnblogs.com/Alex-ZJ/p/10283034.html