Re: Getting the request URL details using PerlOutputFilterHandler

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 06/25/2012 03:57 PM, Rommel Sharma wrote:
> I am using PerlOutputFilterHandler. I need to customize/filter the output based on where (for which resource) the request came from.
> 
> How can I find the URL from where the request was made?


sub filter {
  my ($f, $bb)=@_;
  my $r=$f->r;             # this gives you the current request object
                           # see Apache2::RequestRec

  $r->uri;                 # these fields you may be interested in
  $r->unparsed_uri;
  $r->the_request;
  $r->filename;
}

http://perl.apache.org/docs/2.0/api/Apache2/RequestRec.html

Torsten

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux