Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 92429 invoked from network); 5 Jan 2004 18:57:32 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 5 Jan 2004 18:57:32 -0000 Received: (qmail 63765 invoked by uid 500); 5 Jan 2004 18:57:19 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 63617 invoked by uid 500); 5 Jan 2004 18:57:18 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 63604 invoked from network); 5 Jan 2004 18:57:18 -0000 Received: from unknown (HELO mail.logilune.com) (195.154.174.52) by daedalus.apache.org with SMTP; 5 Jan 2004 18:57:18 -0000 Received: from stason.org (localhost.logilune.com [127.0.0.1]) by mail.logilune.com (Postfix) with ESMTP id 63BDF7B46A for ; Mon, 5 Jan 2004 19:57:21 +0100 (CET) Message-ID: <3FF9B657.2070201@stason.org> Date: Mon, 05 Jan 2004 11:09:11 -0800 From: Stas Bekman Organization: Hope, Humanized User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030630 X-Accept-Language: en-us, en, he, ru MIME-Version: 1.0 To: dev@httpd.apache.org Subject: Re: Possibility to unset or modify some HTTP headers with mod_headers ? References: <45D4FFF3A2E8D41196FF0000F6FFF41B059986DB@gsys-s01.generali.fr> In-Reply-To: <45D4FFF3A2E8D41196FF0000F6FFF41B059986DB@gsys-s01.generali.fr> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N CASTELLE Thomas wrote: > Hi there ! > > Just a small question, is it possible in a HTTP response to unset or modify > the Date and Content-Type header with mod_headers ? I can't manage to do it > and I'm wondering if there's not a restriction on some Headers... I haven't used mod_headers, so I can't tell whether they do what you want, but if you use Apache 2 / mod_perl 2 combo you can easily modify response headers using mod_perl filter Apache::Filter::HTTPHeadersFixup available from CPAN: http://search.cpan.org/dist/Apache-Filter-HTTPHeadersFixup/ You are given an array of headers, and you can manipulate them in any way you want, adding/modifying/removing headers. __________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:stas@stason.org http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com