A couple of suggestions:

1. Confirm with cURL that the website is definitely providing gzip'd
data (you should output the content to a file, and then open it with a
text editor): curl -v -H "Accept-Encoding: gzip" http://foo.bar.com >
output.txt
2. Consider using the example provided at
http://hc.apache.org/httpcomponents-client-ga/examples.html under
"Custom protocol interceptors". This will handle gzip for you
transparently.

Thanks,

Sam


On 29 May 2012 12:18, Mugoma Joseph Okomba <[email protected]> wrote:
>
> I have no control over the websites, so I can't tell if they're setup to
> send compressed pages. But I was assuming that:
> 1. From a sample of, say, 20 sites at least 1 will give a compressed page
> 2. If a site doesn't have compressed version then the return encoding
> shouldn't be gzip
>
>
> On Tue, May 29, 2012 12:41 pm, William Speirs wrote:
>> Is the site setup to send a compressed version?
>>
>> Bill-
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to