Return-Path: X-Original-To: apmail-hc-httpclient-users-archive@www.apache.org Delivered-To: apmail-hc-httpclient-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7BEEE6F9F for ; Sun, 17 Jul 2011 08:54:04 +0000 (UTC) Received: (qmail 79942 invoked by uid 500); 17 Jul 2011 08:54:04 -0000 Delivered-To: apmail-hc-httpclient-users-archive@hc.apache.org Received: (qmail 79697 invoked by uid 500); 17 Jul 2011 08:53:59 -0000 Mailing-List: contact httpclient-users-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpClient User Discussion" Delivered-To: mailing list httpclient-users@hc.apache.org Received: (qmail 79689 invoked by uid 99); 17 Jul 2011 08:53:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 17 Jul 2011 08:53:57 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of khiemu@googlemail.com designates 209.85.214.179 as permitted sender) Received: from [209.85.214.179] (HELO mail-iw0-f179.google.com) (209.85.214.179) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 17 Jul 2011 08:53:51 +0000 Received: by iwg8 with SMTP id 8so2436723iwg.10 for ; Sun, 17 Jul 2011 01:53:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=nlMmj/RhssbWg45sunI26riP5qbV+dOGOFAc9dOKacI=; b=lAyWsvhnhCNthqfeGcpWup1YroMS6am2xhIqV2rDrkCuBdAFZOl/CR6qgakmqAxxV8 yxMSgJDivX+TBvqMYdjUEzR58fg8ZbYIGnDnY6CtZR3+MFmyCkg3OKXESkc56KxsV/mT d3VDhfffdIA1cuquwEwSEoriEySny/XAvq+MY= MIME-Version: 1.0 Received: by 10.42.151.131 with SMTP id e3mr2865914icw.507.1310892811356; Sun, 17 Jul 2011 01:53:31 -0700 (PDT) Received: by 10.42.178.65 with HTTP; Sun, 17 Jul 2011 01:53:31 -0700 (PDT) Date: Sun, 17 Jul 2011 10:53:31 +0200 Message-ID: Subject: detect gzip content From: kim young ill To: HttpClient User Discussion Content-Type: multipart/alternative; boundary=90e6ba6135a85c097204a84004c7 --90e6ba6135a85c097204a84004c7 Content-Type: text/plain; charset=ISO-8859-1 hi there, in some cases, the server returns gzip conten without setting the correct header (content-enconding), which causes the content-length to be interpreted wrongly. is there a way to detect if the content is gzipped ? (browser seems to detect it correctly & gives the full-content, which is not with wget) thanx --90e6ba6135a85c097204a84004c7--