WebClient supports gzip, deflate, and webclientdeflate.
Keep others confidential
Garbled characters found...
Look at the request with F12, people used gzip compression...
Try to add a Heading
wc.Headers.Add("Accept-Encoding", "gzip, deflate");
Garbled characters found...
Check the original settings of HttpWebRequest. AutomaticDecompression on MSDN.
Http://msdn.microsoft.com/en-us/library/system.net.httpwebrequest.automaticdecompression.aspx
Http://msdn.microsoft.com/en-us/library/system.net.decompressionmethods.aspx
Create a class to inherit the WebClient:
public class GZipWebClient : WebClient { protected override WebRequest GetWebRequest(Uri address) { HttpWebRequest webrequest = (HttpWebRequest)base.GetWebRequest(address); webrequest.AutomaticDecompression = DecompressionMethods.GZip | DecompressionMethods.Deflate; return webrequest; } }
Hmm
Hurry up and grab all the plug-ins, magnetic resources, and addresses from the subtitles...