public class GZipWebClient : WebClient
10 {
11 protected override WebRequest GetWebRequest(Uri address)
12 {
13 HttpWebRequest request = (HttpWebRequest)base.GetWebRequest(address);
14 request.AutomaticDecompression = DecompressionMethods.GZip | DecompressionMethods.Deflate;
15 return request;
16 }
17 }
采集网页时gzip乱码的解决办法
最新推荐文章于 2024-08-23 09:00:15 发布