httpd-apreq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Philip M. Gollucci" <>
Subject preload_all_modules()
Date Fri, 06 Jan 2006 18:11:56 GMT
Hi, I was thinking, should apreq add something to mimic mp2's

I don't know what namespace I'd put it in, but it would do the 
equivalent for these:

use APR::Request ();
use APR::Request::Apache2 ();
use APR::Request::CGI ();
use APR::Request::Cookie ();
use APR::Request::Error ();
use APR::Request::Hook ();
use APR::Request::Param ();
use APR::Request::Parser ();
use Apache2::Upload ();
use Apache2::Request ();
use Apache2::Cookie ();

Also, I've noticed a bug... which I'll look at EVENTUALLY, but incase 
someone beats me:

sub handler {
     my $r = shift;

     my $jar = Apache2::Cookie::Jar->new($r);

     my $login = $jar->cookies('login');

     if ($login) {
# this works if I uncomment it
#        $r->err_headers_out->add('Set-Cookie' => $login->as_string);

# this breaks error below
         $login->bake(); ## XXX: libapreq svn(2.07-dev) bug

     $r->headers_out->set(Location => ISST::Const::URL_ISST);

     return Apache2::Const::REDIRECT;
} /home/pgollucci/isst/lib/ISST 639>[Fri Jan 
06 13:11:08 2006] [error] [client ::1] Can't call method 
"err_headers_out" on an undefined value at 
/usr/home/pgollucci/dev/apps-3.4.4/perl/5.8.7/lib/Apache2/ line 83.
  at /home/pgollucci/isst/conf/ line 76
         main::__ANON__('Can\'t call method "err_headers_out" on an 
undefined value at...') called at 
/usr/home/pgollucci/dev/apps-3.4.4/perl/5.8.7/lib/Apache2/ line 83
called at /home/pgollucci/isst/lib/ISST/ line 32
called at -e line 0
         eval {...} called at -e line 0
, referer: http://localhost:6055/timeline/intro

"Love is not the one you can picture yourself marrying,
but the one you can't picture the rest of your life without."

"It takes a minute to have a crush on someone, an hour to like someone,
and a day to love someone, but it takes a lifetime to forget someone..."

"I wanna hold ya till I die ... I wanna hold ya till the fear in me 

Philip M. Gollucci ( 301.254.5198
Consultant /
Senior Software Engineer - TicketMaster -
1024D/A79997FA F357 0FDD 2301 6296 690F  6A47 D55A 7172 A799 97F

View raw message