http://www.cnblogs.com/eaglet/archive/2012/05/18/2507179.html
http://en.code-bude.net/2013/01/21/3-things-you-should-know-to-speed-up-httpwebrequest/
http://www.2cto.com/kf/201209/152326.html
目标:
提高request效率
实现:
1,利用hosts,缓冲dns
2,判断有用的头
以判断\r\n\r\n为头部结束符,头部信息接收完成后
3,利用icloneable,提高重用效率
4,增加并发连接限制
System.Net.ServicePointManager.DefaultConnectionLimit = 512;
5,停止Expect100Continue请求
ServicePointManager.Expect100Continue =
false
;