Luouy~羽林
学问如逆水行舟,不进则退; 有知识的人不实践,等于一只蜜蜂不酿蜜; 我们可以由读书而收集知识,但必须利用思考把糠和谷子分开
摘要: using System;using System.Threading;using System.Text;using System.Text.RegularExpressions;using System.IO.Compression;using System.IO;using System.Web;using System.Net;class Test{ static void Main() { string url = "http://bbs.dahe.cn/bbs/thread-1647174-2498-1.html"; getHtml1(url); getHtml 阅读全文
posted @ 2011-07-05 17:17 羽林.Luouy 阅读(529) 评论(1) 推荐(0) 编辑
摘要: private static byte[] getBytes(string url,CookieContainer cookie){ int c = url.IndexOf("/", 10); byte[] data = null; HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url); request.CookieContainer = cookie; request.Referer = (c > 0 ? url.Substring(0, c) : url); request.UserAgen 阅读全文
posted @ 2011-07-05 17:16 羽林.Luouy 阅读(669) 评论(0) 推荐(0) 编辑