using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;

namespace BankTV.Extensions
{
    public class GZipWebClient : WebClient
    {

        protected override WebRequest GetWebRequest(Uri address)
        {
            HttpWebRequest request = (HttpWebRequest)base.GetWebRequest(address);
            request.AutomaticDecompression = DecompressionMethods.GZip | DecompressionMethods.Deflate;
            return request;
        }

    }
}
