Return-Path: Delivered-To: apmail-perl-modperl-archive@www.apache.org Received: (qmail 48218 invoked from network); 14 Mar 2006 18:15:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 14 Mar 2006 18:15:54 -0000 Received: (qmail 11402 invoked by uid 500); 14 Mar 2006 18:15:48 -0000 Delivered-To: apmail-perl-modperl-archive@perl.apache.org Received: (qmail 11384 invoked by uid 500); 14 Mar 2006 18:15:48 -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 11373 invoked by uid 99); 14 Mar 2006 18:15:48 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Mar 2006 10:15:48 -0800 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 [216.220.209.221] (HELO mfe2.prod.danger.com) (216.220.209.221) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Mar 2006 10:15:46 -0800 Received: from [10.253.3.252] (HELO localhost.localdomain) by mfe2.prod.danger.com (CommuniGate Pro SMTP 4.1.6) with ESMTP id 576406904; Tue, 14 Mar 2006 10:15:26 -0800 Date: Tue, 14 Mar 2006 10:15:20 -0800 Subject: Re: APR::* + PerlResponseHandler + Reading Cookie X-Mailer: Danger Service X-Danger-Send-Id: AAArQUQXCLsAAYbK Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; format="flowed" To: yperl@club-internet.fr, modperl@perl.apache.org Mime-Version: 1.0 References: <1142359678.1550C36F@fb4.dngr.org> From: Fred Moyer Message-Id: <1142360251.1966294B@di11.dngr.org> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N > As usual, I'm facing another problem. > I'm playing with APR::* module like you suggested me (Fred, ) in your > first email. I suggested a few different methods, this this just the one I use. As Perrin pointed out in a different thread a few days ago, the performance gain of this module is overshadowed by other operations for most cases, and some of the othe solutions may be faster to implement. > I successfully send a cookie using APR::Request::Cookie (like described > in the doc), but I did't know how to read that cookie from a > PerlResponseHandler. > > The problem is that the doc doesn't tell how to simply create a > APR::Request from an Apache::RequestRec? Or how to create a jar object > from Apache::RequestRec? I use the Apache2::Cookie wrapper which encapsulates the APR::* packages. The Apache2::Cookie package shows the details of what goes on under the hood, which sounds what you are looking for. use Apache2::Cookie; my $j = Apache2::Cookie::Jar->new($r); my $c_in = $j->cookies("foo"); Hth, Fred