Return-Path: Delivered-To: apmail-httpd-modules-dev-archive@minotaur.apache.org Received: (qmail 91618 invoked from network); 28 Nov 2010 17:50:57 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 28 Nov 2010 17:50:57 -0000 Received: (qmail 19967 invoked by uid 500); 28 Nov 2010 17:50:57 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 19919 invoked by uid 500); 28 Nov 2010 17:50:56 -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 19911 invoked by uid 99); 28 Nov 2010 17:50:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 28 Nov 2010 17:50:56 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jodibosa@gmail.com designates 209.85.214.173 as permitted sender) Received: from [209.85.214.173] (HELO mail-iw0-f173.google.com) (209.85.214.173) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 28 Nov 2010 17:50:49 +0000 Received: by iwn42 with SMTP id 42so3771972iwn.18 for ; Sun, 28 Nov 2010 09:50:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=ycunQQAQ4KD17eusXFFXUF9S5ZzLRqzlumH0ntsRzMQ=; b=qd+oubn/0adg7ajTU66TatR3S5MnJnZEDD6MShY/knFdQgF6lDrmjZR36OQXRnWGuc JVW4ilyWt4nlymQJ+0HicfXAg7x/ui2QiGHvtexm30iOj2bwx4czkwmf+y/VLojbwETy WvQKgPtY2ZaA+DEsMI2+wEaWFbp3rHf0XkozM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=pXq4Fjh4xh4Blm7eVA6OnzsE5UUwOzb2Yd5z7NND+mgTAl9MyNT1ynK0xQ4Ptkt/1c iECM0r8lwTbxBdrdhAC7PAgZ+AmxhWAtm3421r2oTa3+nWfKLIoMNYqt4WWVslyc49Fl 2j92JO+VF3yCvg/1WaW0cInmrnAIBaagCissM= MIME-Version: 1.0 Received: by 10.42.213.130 with SMTP id gw2mr1374448icb.486.1290966627736; Sun, 28 Nov 2010 09:50:27 -0800 (PST) Received: by 10.42.133.1 with HTTP; Sun, 28 Nov 2010 09:50:27 -0800 (PST) In-Reply-To: <20101128154941.GA24160@seid-online.de> References: <4212B3C3-A0AB-46AA-8894-E2C126AD606D@sequoiagroup.com> <20101128154941.GA24160@seid-online.de> Date: Sun, 28 Nov 2010 17:50:27 +0000 Message-ID: Subject: Re: Location header in Handler From: Jodi Bosa To: modules-dev@httpd.apache.org Content-Type: multipart/alternative; boundary=20cf30564303435bda04962097a9 X-Virus-Checked: Checked by ClamAV on apache.org --20cf30564303435bda04962097a9 Content-Type: text/plain; charset=ISO-8859-1 my mistake - needed to return HTTP_MOVED_TEMPORARILY instead of OK (along with Location: header set) thanks all On Sun, Nov 28, 2010 at 3:49 PM, wrote: > On Sat, Nov 27, 2010 at 09:45:43PM -0700, Chris Kukuchka wrote: > > On Nov 27, 2010, at 4:53 PM, Jodi Bosa wrote: > > > > > I must be missing something. I cannot seem to set headers in a > handler. I > > > am using the Location header thinking that it's the most obvious (I > don't > > > really care about redirecting - just using Location for easy > debugging). > > > > > > > r->err_headers_out is for setting headers to be returned by an error > response. You are returning OK. > > > > Try setting r->headers_out instead. > > You mean like in line 4 of the OP's sample code? > > ;-) > > > Cheers, Ralf Mattes > > > > Chris Kukuchka > > Sequoia Group, Inc. > > > > > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- > > > > SIG Meetings: March 27, 2011 | Conference : March 28-30, 2011 | The > Peabody Orlando | > --20cf30564303435bda04962097a9--