Thursday, May 16, 2013

GZIP Compression and Google Servers


If you ever tried to compress HTTP communication with a Google Server and it returned normal text


Try

1) Adding "Accept-Encoding:gzip" header


2) Adding proper User Agent ( Emulate a browser ) or set it to "gzip"


"User-Agent:Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Tr/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)"

OR

"User-Agent:gzip"


No comments:

Post a Comment