var sContentEncoding = httpRespone.Headers["Content-Encoding"];
if(sContentEncoding == "gzip")
{
MemoryStream msTemp = new MemoryStream();
int count = 0;
GZipStream gzip = new GZipStream(httpRespone.GetResponseStream(), CompressionMode.Decompress);
byte[] buf = new byte[1000];
byte[] byteArray = null;
while((count = gzip.Read(buf,0,buf.Length)) > 0)
{
msTemp.Write(buf,0,count);
}
byteArray = msTemp.ToArray();
string sHtml = Encoding.UTF8.GetString(byteArray);
}