摘要: 测试使用两个xml文件。文件1.XML内容如下: <?xmlversion="1.0"encoding="ISO-8859-1"?><bookstore><book><titlelang="eng">HarryPotter</title><price>29.99</price><book><titlelang="eng">HarryPotter</title><price>29.99& 阅读全文
posted @ 2010-12-17 18:06 再快一点 阅读(306) 评论(0) 推荐(0) 编辑
摘要: static void Main(string[] args) { HttpWebResponse web = MySpider.GetResponse("http://localhost:1853/WebForm1.aspx"); DecompressGZip(web ); Console.ReadLine(); }public static MemoryStream DecompressGZip(HttpWebResponse res) {   //如果服务器使用了Transfer-Encoding:chunked缓冲输出,则只要服务器端Flush了,就会触发此方法,而不是等到服务器发送过 阅读全文
posted @ 2010-12-17 00:39 再快一点 阅读(3516) 评论(1) 推荐(0) 编辑