Return-Path: Delivered-To: apmail-perl-modperl-archive@www.apache.org Received: (qmail 49632 invoked from network); 22 Sep 2005 00:31:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 22 Sep 2005 00:31:21 -0000 Received: (qmail 73253 invoked by uid 500); 22 Sep 2005 00:31:15 -0000 Delivered-To: apmail-perl-modperl-archive@perl.apache.org Received: (qmail 73236 invoked by uid 500); 22 Sep 2005 00:31:14 -0000 Mailing-List: contact modperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list modperl@perl.apache.org Received: (qmail 73223 invoked by uid 99); 22 Sep 2005 00:31:14 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Sep 2005 17:31:14 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [66.77.143.9] (HELO secure.exclamationlabs.net) (66.77.143.9) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Sep 2005 17:31:22 -0700 Received: from [192.168.2.160] (pcp0010776620pcs.walngs01.pa.comcast.net [69.141.1.101]) (authenticated (0 bits)) by secure.exclamationlabs.net (8.11.6/8.11.6) with ESMTP id j8M0Uue25334; Wed, 21 Sep 2005 19:30:56 -0500 Message-ID: <4331FB38.7030405@modperlcookbook.org> Date: Wed, 21 Sep 2005 20:30:48 -0400 From: Geoffrey Young User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20040927 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Boysenberry Payne CC: mod_perl Subject: Re: MP2 version of Apache->request References: In-Reply-To: X-Enigmail-Version: 0.86.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Boysenberry Payne wrote: > I used to have: > > my $r = Apache->request(); > $r->content_type("text/html"); > $r->send_http_header; > > It seems the MP2 syntax is now: > > $r = Apache2::RequestRec->new($c); nope. try my $r = Apache2::RequestUtil->request; > $r->content_type("text/html"); > > How do I get $c? > How do I send the http header now? you don't - apache sends it for you. --Geoff