using (var client = new HttpClient())
{
var content = new FormUrlEncodedContent(new Dictionary<string, string>()
{
{ "Sel_XNXQ", "20160" },
{ "Sel_KC", "065954" },
{ "gs", "1" },
{ "txt_yzm", "M984" }
})
var response = await client.PostAsync("地址", content)
if (response.IsSuccessStatusCode)
{
string responseBody = await response.Content.ReadAsStringAsync() // 返回结果
}
}
徒手写的代码,可能有拼写错误。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)