diff --git a/module-client/src/examples/org/apache/http/examples/client/ClientGZipContentCompression.java b/module-client/src/examples/org/apache/http/examples/client/ClientGZipContentCompression.java index c713c05d9..b047b4fc3 100644 --- a/module-client/src/examples/org/apache/http/examples/client/ClientGZipContentCompression.java +++ b/module-client/src/examples/org/apache/http/examples/client/ClientGZipContentCompression.java @@ -108,6 +108,8 @@ public class ClientGZipContentCompression { System.out.println("----------------------------------------"); System.out.println(response.getStatusLine()); + System.out.println(response.getLastHeader("Content-Encoding")); + System.out.println(response.getLastHeader("Content-Length")); System.out.println("----------------------------------------"); HttpEntity entity = response.getEntity(); @@ -115,6 +117,8 @@ public class ClientGZipContentCompression { if (entity != null) { String content = EntityUtils.toString(entity); System.out.println(content); + System.out.println("----------------------------------------"); + System.out.println("Uncompressed size: "+content.length()); } }