Hi:
I was wondering if there is any way I can add a dynamic parameter for the
filter_content callback function to modify and keep track off for each
server in the config file? I'm thinking something like:
server1 = (
base_url => '$resource',
same_host => '$same_host',
agent => 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)',
link_tags => [qw/ a frame /],
credential_timeout => undef,
use_cookies => 'true',
use_head_requests => 'true',
counter => 8,
filter_content => sub{
$counter-- if($_[3] =~ /keyword/);
$_[1]->{abort}++ if($counter == 0);
}
)
Is this possible? Thanks!
-Justin
Received on Thu Aug 4 16:49:17 2005