mod_perl2 send original requested url

Posted by spoier on Stack Overflow See other posts from Stack Overflow or by spoier
Published on 2010-06-11T15:08:58Z Indexed on 2010/06/11 15:13 UTC
Read the original article Hit count: 114

Filed under:

Hello all, I have a mod_perl module to intercept the http response fase but I just want to intercept it and satisfy that request... In other words, I want to get the request and return what the client requested... I have something like this:

  use strict;

  use Apache2::RequestRec ();  # for $r->content_type
  use Apache2::RequestIO ();   # for $r->puts
  use Apache2::Const -compile => qw(:common);

  sub handler {
  my $r = shift;
 $r->content_type('text/html');
 return Apache2::Const::OK;
} 
1;

Apparently it doesn't work...

© Stack Overflow or respective owner

Related posts about mod-perl2