摘要: GetResponse 方法返回包含来自 Internet 资源的响应的 WebResponse 对象。 实际返回的实例是 HttpWebResponse,并且能够转换为访问 HTTP 特定的属性的类。 在一些情况下,当对 HttpWebRequest 类设置的属性发生冲突时将引发 Protocol 阅读全文
posted @ 2016-12-03 14:05 弄丢的小可爱🌸 阅读(337) 评论(0) 推荐(0)
摘要: http://blog.csdn.net/sjj2011/article/details/7823392 HttpWebRequest和HttpWebResponse类是用于发送和接收HTTP数据的最好选择。它们支持一系列有用的属性。这两个类位 于System.Net命名空间,默认情况下这个类对于控 阅读全文
posted @ 2016-12-03 13:32 弄丢的小可爱🌸 阅读(198) 评论(0) 推荐(0)
摘要: Dictionary<string, int> list = new Dictionary<string, int>(); list.Add("d", 1); //3.0以上版本 foreach (var item in list) { Console.WriteLine(item.Key + it 阅读全文
posted @ 2016-12-03 13:22 弄丢的小可爱🌸 阅读(278) 评论(0) 推荐(0)
摘要: using Newtonsoft.Json;using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks; namespace Demo11 阅读全文
posted @ 2016-12-03 13:21 弄丢的小可爱🌸 阅读(328) 评论(0) 推荐(0)
摘要: using System;using System.Configuration;using System.IO;using System.Net;using System.Text;using Newtonsoft.Json.Linq;using OSharp.Utility.Secutiry; n 阅读全文
posted @ 2016-12-03 13:20 弄丢的小可爱🌸 阅读(268) 评论(0) 推荐(0)