tags:

views:

5

answers:

0

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...