HttpWebRequest hwreq= (HttpWebRequest)HttpWebRequest.Create(sUrl);
...其它信息
hwreq.Headers.Add("Accept-Encoding", "gzip"); //打包
hwreq.AutomaticDecompression = DecompressionMethods.GZip; //解包
hwreq.GetResponse();
时间: 2024-10-05 04:33:30
HttpWebRequest hwreq= (HttpWebRequest)HttpWebRequest.Create(sUrl);
...其它信息
hwreq.Headers.Add("Accept-Encoding", "gzip"); //打包
hwreq.AutomaticDecompression = DecompressionMethods.GZip; //解包
hwreq.GetResponse();