Hello,
I have setup URL download:
HttpGet request = new HttpGet(url);
request.addHeader("Accept-Encoding", "gzip,deflate");
response.getFirstHeader("Content-Encoding") shows "Content-Encoding: gzip"
However, entity.getContentEncoding() is null.
If I put:
entity = new GzipDecompressingEntity(entity);
I get:
java.io.IOException: Not in GZIP format
It looks like the resulting page is plain text and not compressed even
though "Content-Encoding" header shows it's gzip.
I have tried this on several URLs (from different websites) but get same
results.
How can I get compressed version of web page? I am using HC 4.1
Thanks in advance.
Mugoma Joseph.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]