摘要: 本文是常规的WebApi 操作,转载于仓储大叔http://www.cnblogs.com/lori/p/4137174.htmlWebApi系列~实际项目中如何使用HttpClient向web api发异步Get和Post请求并且参数于具体实体类型回到目录本讲比较实际,在WEB端有一个Index和... 阅读全文
posted @ 2015-11-06 15:54 小蚕豆 阅读(2776) 评论(0) 推荐(0) 编辑
摘要: HttpClient client = new HttpClient();// 构造参数 HttpContent content = new FormUrlEncodedContent(new[]{ new KeyValuePair("","") }); ... 阅读全文
posted @ 2015-11-06 15:53 小蚕豆 阅读(641) 评论(0) 推荐(0) 编辑
摘要: 1、 页面头部2、 protected async void Button1_Click(object sender, EventArgs e) { //TextBox1.Text = new Class1().Start(); int contentLength ... 阅读全文
posted @ 2015-11-06 15:37 小蚕豆 阅读(254) 评论(0) 推荐(0) 编辑