WebClient and Gzip compression is faster?
Posted
by
Yozer
on Stack Overflow
See other posts from Stack Overflow
or by Yozer
Published on 2013-06-29T10:09:12Z
Indexed on
2013/06/29
10:21 UTC
Read the original article
Hit count: 179
I writting an application which is using WebClient class.
Adding something like that:
ExC.Headers.Add("Accept-Encoding: gzip, deflate");
where ExC is:
class ExWebClient1 : WebClient
{
protected override WebRequest GetWebRequest(Uri address)
{
HttpWebRequest request = (HttpWebRequest)base.GetWebRequest(address);
request.AutomaticDecompression = DecompressionMethods.GZip | DecompressionMethods.Deflate;
return request;
}
}
It will be a diffrence in speed when i will be using encoded response?
© Stack Overflow or respective owner