摘要:
第一种方法:using System.IO;using System.Runtime.InteropServices;[DllImport("kernel32.dll")]public static extern IntPtr _lopen(string lpPathName, int iReadWrite);[DllImport("kernel32.dll")]public static extern bool CloseHandle(IntPtr hObject);public const int OF_READWRITE = 2;public co 阅读全文
随笔档案-2013年08月
C#使用Gzip解压缩完整读取网页内容
2013-08-08 10:51 by 狼人:-), 1196 阅读, 收藏, 编辑
摘要:
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://www.cnblogs.com/waw/"; getHtml1(url); getHtml2(ur... 阅读全文