Return-Path: X-Original-To: apmail-chemistry-dev-archive@www.apache.org Delivered-To: apmail-chemistry-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B6632F9CB for ; Tue, 7 May 2013 14:34:12 +0000 (UTC) Received: (qmail 68699 invoked by uid 500); 7 May 2013 14:34:12 -0000 Delivered-To: apmail-chemistry-dev-archive@chemistry.apache.org Received: (qmail 68534 invoked by uid 500); 7 May 2013 14:34:11 -0000 Mailing-List: contact dev-help@chemistry.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@chemistry.apache.org Delivered-To: mailing list dev@chemistry.apache.org Received: (qmail 68524 invoked by uid 99); 7 May 2013 14:34:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 May 2013 14:34:11 +0000 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests= X-Spam-Check-By: apache.org Received-SPF: error (nike.apache.org: local policy) Received: from [92.51.170.74] (HELO server03.mc0.hosteurope.de) (92.51.170.74) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 May 2013 14:34:06 +0000 Received: from server01.webmailer.hosteurope.de ([10.9.0.180]); by mailout.hosteurope.de (server03.mc0.hosteurope.de) running EXperimental Internet Mailer with esmtps (TLSv1:AES256-SHA:256) id 1UZixJ-0001mu-19; Tue, 07 May 2013 16:33:25 +0200 Received: from nobody by server01.webmailer.hosteurope.de with local (Exim 4.72) (envelope-from ) id 1UZixI-0005Tr-Vc; Tue, 07 May 2013 16:33:24 +0200 To: Carlo Sciolla Subject: Re: Chunked transfer encoding MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Tue, 07 May 2013 16:33:24 +0200 From: =?UTF-8?Q?Florian_M=C3=BCller?= Cc: In-Reply-To: References: <41379b4cb6d643f37568cdcc26ddd66e-EhVcXl9JQQFXRwQFDQkEXR0wfgZLV15fQUBFBEFYXS9ZUF0WWlloB11LX15ZLkQBWV1QQlxcXw4=-webmailer2@server01.webmailer.hosteurope.de> Message-ID: <22e66c8f9f37a7731f728adff723d49c-EhVcXl9JQQFXRwQFDQkEXR0wfgZLV15fQUBFBEFYXS9ZUF0WWlloB11LX15ZLkQBWV1QQ19XWAw=-webmailer2@server01.webmailer.hosteurope.de> X-Sender: fmui@apache.org User-Agent: Host Europe Webmailer/2.0 X-HE-Access: Yes X-bounce-key: webpack.hosteurope.de;fmui@apache.org;1367937205;a402ee27; X-Virus-Checked: Checked by ClamAV on apache.org Hi Carlo, That is surprising. Chunked encoding isn't really exotic. Could you please open an Improvement issue and add a few details. I'll look into it. - Florian > Hi Florian, > > our use cases currently revolve around caching. As an example, we > found out quite some browsers fail to cache HTTP responses when > encoded in chunks. The same applies to some intermediate cache > middleware between our CMIS repository and the browser. > > It would be indeed great if we had some hooks in the serialization > process to influence the HTTP details of the CMIS responses before > they're sent back to the client, at least setting headers such as > Content-Length, Cache-Control, ETag, etc. > > c. > > 2013/5/7 Florian Müller > Hi Carlo, > > We could add something here, but that is usually not necessary. HTTP > 1.1 clients should be able to deal with chunks. And even if we do it, > the app server could decide to remove the Content-Length header again > if it, for example, compresses the outgoing stream. > > Could you describe your use case? Are you looking for general switch > or a hint per document? > > Florian > > Dear chemists, > > we are trying to have our OpenCMIS based server produce HTTP > response > with > a Content-Length header and without the Transfer-encoding: chunked > one. It > appears to me that the default behavior stems from OpenCMIS never > setting > the Content-length, letting the app server use the default chunked > encoding > in such cases. Is there any way we can at least hook to properly set > the > Content-length at least for the getContentStream REST operation? > > Thanks, > c. > > -- > Carlo Sciolla > > --==(A)==-- > Linux User #372086 > My personal blog: http://www.skuro.tk [2] > Follow me on twitter: http://twitter.com/skuro [3] > [4]Fork me on Github: http://github.com/skuro [5] > [6]My LinkedIn profile: http://nl.linkedin.com/in/carlosciolla [7] > --==(A)==-- > > Product Lead at Backbase - Next Generation Portal Software for > Financials & Large Enterprises (http://www.backbase.com [8]) > > > Links: > ------ > [1] mailto:fmui@apache.org > [2] http://www.skuro.tk > [3] http://twitter.com/skuro > [4] http://twitter.com/skuro > [5] http://github.com/skuro > [6] http://github.com/skuro > [7] http://nl.linkedin.com/in/carlosciolla > [8] http://www.backbase.com