Return-Path: X-Original-To: apmail-httpd-modules-dev-archive@minotaur.apache.org Delivered-To: apmail-httpd-modules-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 15F754663 for ; Mon, 6 Jun 2011 12:40:00 +0000 (UTC) Received: (qmail 41435 invoked by uid 500); 6 Jun 2011 12:39:59 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 41407 invoked by uid 500); 6 Jun 2011 12:39:59 -0000 Mailing-List: contact modules-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: modules-dev@httpd.apache.org Delivered-To: mailing list modules-dev@httpd.apache.org Received: (qmail 41399 invoked by uid 99); 6 Jun 2011 12:39:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Jun 2011 12:39:59 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of info@bnoordhuis.nl designates 209.85.160.173 as permitted sender) Received: from [209.85.160.173] (HELO mail-gy0-f173.google.com) (209.85.160.173) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Jun 2011 12:39:53 +0000 Received: by gyg4 with SMTP id 4so2025077gyg.18 for ; Mon, 06 Jun 2011 05:39:32 -0700 (PDT) MIME-Version: 1.0 Received: by 10.236.180.134 with SMTP id j6mr5837080yhm.440.1307363972178; Mon, 06 Jun 2011 05:39:32 -0700 (PDT) Received: by 10.236.107.198 with HTTP; Mon, 6 Jun 2011 05:39:32 -0700 (PDT) X-Originating-IP: [188.205.237.129] In-Reply-To: References: Date: Mon, 6 Jun 2011 14:39:32 +0200 Message-ID: Subject: Re: Add a variable on http header From: Ben Noordhuis To: modules-dev@httpd.apache.org Content-Type: text/plain; charset=ISO-8859-1 On Mon, Jun 6, 2011 at 14:15, Maurizio Totti wrote: > I would try to set an http header variable "on the fly" but without success :-( > I write this simple module to test the functionality > > http://pastebin.com/b8hcZTtb > > I don't understand my error, someone can help me? - Is your module supposed to be a filter or a handler? Your example is a bit of both. - What error (if any) do you get and when? - Have you looked at the mod_headers source?