Return-Path: Delivered-To: apmail-httpd-modules-dev-archive@locus.apache.org Received: (qmail 90110 invoked from network); 10 Dec 2007 17:04:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Dec 2007 17:04:57 -0000 Received: (qmail 20747 invoked by uid 500); 10 Dec 2007 17:04:45 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 20732 invoked by uid 500); 10 Dec 2007 17:04:45 -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 20723 invoked by uid 99); 10 Dec 2007 17:04:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Dec 2007 09:04:45 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [166.70.186.42] (HELO onyx.sharktooth.org) (166.70.186.42) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Dec 2007 17:04:22 +0000 Received: from [151.155.133.87] by onyx.sharktooth.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.63 (FreeBSD)) (envelope-from ) id 1J1lxZ-000FAN-Bl for modules-dev@httpd.apache.org; Mon, 10 Dec 2007 09:58:27 -0700 Message-ID: <475D7194.4040705@joe-lewis.com> Date: Mon, 10 Dec 2007 10:04:20 -0700 From: Joe Lewis User-Agent: Thunderbird 1.5.0.8 (X11/20060911) MIME-Version: 1.0 To: modules-dev@httpd.apache.org References: <2960_7724_1197305755_394@inet3p057p> In-Reply-To: <2960_7724_1197305755_394@inet3p057p> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 151.155.133.87 X-SA-Exim-Mail-From: joe@joe-lewis.com X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on onyx.sharktooth.org X-Spam-Level: Subject: Re: http-redirect url gets corrupted in request_rec - apache 2 X-SA-Exim-Version: 4.2 X-SA-Exim-Scanned: Yes (on onyx.sharktooth.org) X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=-1.4 required=5.0 tests=ALL_TRUSTED autolearn=failed version=3.1.7 SAILESH KRISHNAMURTI, BLOOMBERG/ 731 LEXIN wrote: > Gotccha, heres what the relevant hook info > static void someModule_register_hooks (apr_pool_t * p) > { > ap_hook_post_config (Some_init_method, NULL, NULL, APR_HOOK_MIDDLE); > ap_hook_check_user_id (SomeMethod, NULL, NULL, APR_HOOK_MIDDLE); > ap_hook_auth_checker (SomeMethod, NULL, NULL, APR_HOOK_MIDDLE); > ap_hook_access_checker (SomeMethod, NULL, NULL, APR_HOOK_MIDDLE); > } Looks like its all using HOOK_MIDLE. You mentioned using ap_hook_insert_error_filter. Is it okay to use something that talks of inserting a filter into a module, since modules and filters are supposed to be distinct animals. This could just be a novice question, but just thought Id clarify beforehand. I only inserted the example register hook function in because you had not answered the question for what kind of hook was being used (and until we know, we can only guess). Try changing APR_HOOK_MIDDLE to APR_HOOK_LAST, recompile/install, and see if that changes what you see in the log files. Joe P.S. - "Top posting" isn't very effective - it makes following the e-mail thread that much more difficult. Try posting your responses after the necessary text to which you are replying. -- Joseph Lewis "Divide the fire, and you will sooner put it out." - Publius Syrus