Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 37019 invoked from network); 4 Jul 2007 09:08:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Jul 2007 09:08:36 -0000 Received: (qmail 56909 invoked by uid 500); 4 Jul 2007 09:08:25 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 56892 invoked by uid 500); 4 Jul 2007 09:08:25 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 56881 invoked by uid 99); 4 Jul 2007 09:08:25 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Jul 2007 02:08:25 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of delbd+jakarta@oma.be designates 193.190.231.71 as permitted sender) Received: from [193.190.231.71] (HELO bonnie.oma.be) (193.190.231.71) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Jul 2007 02:08:21 -0700 Received: from bonnie.oma.be (localhost [127.0.0.1]) by bonnie.oma.be (8.13.6/8.11.1) with ESMTP id l64980em011084 for ; Wed, 4 Jul 2007 09:08:00 GMT Received: from [193.190.249.120] (cal-12.oma.be [193.190.249.120]) by bonnie.oma.be (8.13.6/8.11.1) with ESMTP id l649800q011081 for ; Wed, 4 Jul 2007 09:08:00 GMT Message-ID: <468B634C.1050908@oma.be> Date: Wed, 04 Jul 2007 11:07:24 +0200 From: David Delbecq User-Agent: Thunderbird 1.5.0.12 (X11/20070604) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: how to manipulate static content References: <67c857860707040037y475cd0aerab8a705f4d939e4@mail.gmail.com> <67c857860707040052l1d7ac617nec8158757dd4b750@mail.gmail.com> In-Reply-To: <67c857860707040052l1d7ac617nec8158757dd4b750@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Either map to '/*' your custom servlet that returning the static content with your custom headers, either write a servletfilter that add additional header before processing request. En l'instant pr�cis du 04/07/07 09:52, lior grinfeld s'exprimait en ces termes: > Hi, > > i am new at using tomcat. > I want to use tomcat as a server to test our proxy. to do that i need to > manipulate the response headers, i did that without problems using > servlets. > now i want to manipulate the http response headers or content of requests > for static content. > Ex. if i will do "GET myServer/somefile.txt" the tomcat will know to > return > the file and manipulate the response http headers as i want, or to do > zip or > to do chunks on the content. > is it possible and how? where can i configure tomcat to refer to the > directory where all my files are stored? --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org