摘要:
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 阅读全文
摘要:
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 阅读全文