HttpWebRequest gzip 下載時亂碼問題

HttpWebRequest hwreq= (HttpWebRequest)HttpWebRequest.Create(sUrl);ip

...其它信息io

hwreq.Headers.Add("Accept-Encoding", "gzip"); //打包
hwreq.AutomaticDecompression = DecompressionMethods.GZip; //解包打包

hwreq.GetResponse();coding

相關文章
相關標籤/搜索