Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jersey-dev] [External] : Question about GZIP encoding and Content-Length
  • From: Jan Supol <jan.supol@xxxxxxxxxx>
  • Date: Tue, 12 Sep 2023 12:29:58 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=+AigE3RqTq9bix6Lpcd653j6jVlj3j4FmW2dbvVIut0=; b=KERwbfDFCGeVgtp4mUFGbXmRHvBa4UFXOqvdGy6zHnVvFfajxpEaYRS1LIKmwJDOGlZ1DZOb/TlFMmmNlQ44crzxZdBnT8SqdC2V/D0mE52THtS7OC1fwHPvVYB1F2Zc9IIOsW3rFtrL1oh8Myl1oU6ZLfsfgofqkntG3ArWYWdF19wuBOIvtZKk3phe1wnW0pYJL6KMt/DdZWaDAwlck56YiXRj5xInKMAJQI4gq+7n0/DW/0YnbpXDKd/ZciTlaQV997M96KXazB4+TyL9GdOj+bOQXsNM7CJ7e6ThJO5qa8Vnub2CDIqCs1ST/Kjw/zOzEKX2Sbi18uGXHxYqAA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XxcctzE0KSkjQ1YFd+D9D3lSG2IonxRx+/qFWrCYCWwepk2bUrC5lu04dWI8raZ2iOJXofjln9ubcyHyj+SOoECb+2Z4FGpr/tp8wsuve17qQuShtM8TqGCddiC7c5LQ++v6O76f9/jXQO+7bPpQnzKx23g/qU8tP0/SaYky+FjbecNYdq0vsc6E8gehAv2UG2xXNIh1jGCdZeM9nmLswZ9h4yAxXgMMO5fxmu55ZMVznT/3lXbRPrkB4zgeNfFIh6XJM5o/u8sL6UARj+GQb5DuuUFRLvEBHRlOMgwrch64wjTSTOk4d3nMJMJyaCbTZVHSB0Vv7r7QXq+8j61Juw==
  • Delivered-to: jersey-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/jersey-dev/>
  • List-help: <mailto:jersey-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/jersey-dev>, <mailto:jersey-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/jersey-dev>, <mailto:jersey-dev-request@eclipse.org?subject=unsubscribe>
  • Msip_labels:
  • Thread-index: AQHZ48VPhrf/ozJ+1k+JfdXBwCNmZbAXId2T
  • Thread-topic: [External] : [jersey-dev] Question about GZIP encoding and Content-Length

Hi,
can share your tests?
Thanks
Jan

From: jersey-dev <jersey-dev-bounces@xxxxxxxxxxx> on behalf of Boris Petrov via jersey-dev <jersey-dev@xxxxxxxxxxx>
Sent: Sunday, September 10, 2023 11:00 AM
To: jersey-dev@xxxxxxxxxxx <jersey-dev@xxxxxxxxxxx>
Cc: Boris Petrov <boris_petrov@xxxxxxxx>
Subject: [External] : [jersey-dev] Question about GZIP encoding and Content-Length
 
Hi all,

I'm not sure how Jersey handles the Content-Length header when a
response is GZIP-compressed (via GZipEncoder for example). I see in my
tests that a Content-Length header is (sometimes) sent but it is
different from the actual body length. I believe that's not OK as the
two numbers should match. So can someone explain to me two things:

1) why is Content-Length sometimes sent and sometimes not? What does it
depend on?
2) why is Content-Length different from the actual body length when GZIP
encoding is used.

Thanks in advance,
Boris

_______________________________________________
jersey-dev mailing list
jersey-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://urldefense.com/v3/__https://www.eclipse.org/mailman/listinfo/jersey-dev__;!!ACWV5N9M2RV99hQ!Park9_bFFajvLru7q3GPCP_GDwZ2SOGdpwek4HgdLMW9n-82y73QLaj1s8jnX28aBBKinZwZ-VqH0kLIKo85FA$

Back to the top