/usr/share/doc/squidguard/examples/squidGuardRobot/RobotUserAgent.pm is in squidguard 1.5-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | package RobotUserAgent;
use Exporter;
use LWP::Parallel::UserAgent qw(:CALLBACK);
use POSIX qw(strftime);
@ISA = qw(LWP::Parallel::UserAgent Exporter);
@EXPORT = @LWP::Parallel::UserAgent::EXPORT_OK;
sub on_connect {
my ($self, $request, $response, $entry) = @_;
my ($key,$val);
::info("%s: %s", $request->{_method}, $request->{_uri});
}
1;
|