C# HttpClient 操作

 

 

HttpClient client = new HttpClient();

// 构造参数

HttpContent content = new FormUrlEncodedContent(new[]{
new KeyValuePair<string,string>("","")
});

  client.PostAsync("http://msdn.microsoft.com",content);

 

posted @ 2015-11-06 15:53  小蚕豆  阅读(642)  评论(0编辑  收藏  举报