Return-Path: Delivered-To: apmail-httpd-modules-dev-archive@locus.apache.org Received: (qmail 13753 invoked from network); 8 Feb 2008 19:23:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Feb 2008 19:23:02 -0000 Received: (qmail 42807 invoked by uid 500); 8 Feb 2008 19:22:55 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 42492 invoked by uid 500); 8 Feb 2008 19:22:54 -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 42483 invoked by uid 99); 8 Feb 2008 19:22:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Feb 2008 11:22:54 -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: domain of fry@google.com designates 216.239.45.13 as permitted sender) Received: from [216.239.45.13] (HELO smtp-out.google.com) (216.239.45.13) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Feb 2008 19:22:22 +0000 Received: from zps36.corp.google.com (zps36.corp.google.com [172.25.146.36]) by smtp-out.google.com with ESMTP id m18JMPTG002597 for ; Fri, 8 Feb 2008 11:22:25 -0800 DomainKey-Signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns; h=received:message-id:date:from:to:subject:in-reply-to: mime-version:content-type:content-transfer-encoding: content-disposition:references; b=Fpeefqa98Hwm5SckMHo6kBBY7VXoEUAj2Z9JWMTYnQIdCfP4u5Z15ctegAsf6mkJs Rk/IO3zZgtF5kSJ7h55xw== Received: from py-out-1112.google.com (pyia25.prod.google.com [10.34.253.25]) by zps36.corp.google.com with ESMTP id m18JMOae032737 for ; Fri, 8 Feb 2008 11:22:25 -0800 Received: by py-out-1112.google.com with SMTP id a25so4371418pyi.11 for ; Fri, 08 Feb 2008 11:22:24 -0800 (PST) Received: by 10.64.203.4 with SMTP id a4mr18271660qbg.6.1202498543977; Fri, 08 Feb 2008 11:22:23 -0800 (PST) Received: by 10.65.218.19 with HTTP; Fri, 8 Feb 2008 11:22:23 -0800 (PST) Message-ID: Date: Fri, 8 Feb 2008 14:22:23 -0500 From: "Charles Fry" To: modules-dev@httpd.apache.org Subject: Re: sending provisional response codes from a filter In-Reply-To: <20080208170356.22fa30ff@grimnir> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20080208170356.22fa30ff@grimnir> X-Virus-Checked: Checked by ClamAV on apache.org Wow, ap_send_interim_response is great! Thanks for pointing that out. I got it to work with apparent success by just reusing the ap_filter_t's reqeust_rec in my incoming filter, saving the status and status code, setting them for the interim call, and then restoring them afterwords. Does this sound like the right way to use ap_send_interim_response, or should I really be geenrating a new request_rec just for this response? thanks, Charles On Feb 8, 2008 12:03 PM, Nick Kew wrote: > On Fri, 8 Feb 2008 11:46:18 -0500 > "Charles Fry" wrote: > > > All right. I finally resolved this, and it ends up the code works just > > fine, it's just that the input filter wasn't set properly, but I > > didn't notice due to the spurious 103 I was observing due to my > > modification of http_protocol. Whew. > > Great. Saves thinking about whether I'd have anything useful to say. > > Are you using the (new) ap_send_interim_response API function, > or is the response embedded in your filter? > > -- > Nick Kew > > Application Development with Apache - the Apache Modules Book > http://www.apachetutor.org/ >