I'm ok to linux but not too much. I want to know that I ve running the Linux(RedHat 9.0) Based server install for Proxy(Interconnection Sharing) I had implement Squid for HTTP Proxy on which some services like IE, NetScape, Yahoo Messenger, MSN messenger and Get Right are running but I want to run... (2 Replies)
Hi All,
Where do I find/download this font package 'FONT_FAMILY_SANS_SERIF-FONT_STYLE_NORMAL-14' and how to install it ?
When I run an osi utility (ftamtool) it shows me this error:
##FTAM Tool : XView ERROR
XView warning: Impossible de charger le jeu de caractères 'FONT_FAMILY_SANS_SERI... (0 Replies)
So I have been struggling for the past few days to install a simulation package lammps (http://lammps.sandia.gov/) on my Mac OS X. I am well aware that this is a Ubuntu forum, but you guys seem to know a lot of UNIX stuff, so I was hoping someone might have a solution to my problem...
To run... (1 Reply)
Hi,
I am doing some testing with creation of depots on HP-UX systems (11.11).
Want to display some echo statements based on the processing during checkinstall, pre & postinstall scripts on the terminal.
The echo statements are getting directed to /var/adm/sw/swagent.log
I want to display... (7 Replies)
I have Squid set up, but when my friend wants to use it, he has to enter my IP and port in his browser settings every time. How can I make it so that he only has to go a webpage I create, and use the proxy from there instead of having to change his browser Network settings every single time? I also... (1 Reply)
Hi everyone,
Hope u doing good.
I am trying to installl WebSphere Application Server(WAS) ND package, i got problem at initial level
I hope, the problem is with Mozilla browzer. Can anyone trobleshoot the problem
An error occurred while starting the launchpad for a WebSphere Application ... (0 Replies)
Friends,
Please let meknow, How we can find the dependancies of .dstream package & .rpm package before installation ?
For AIX, We can use the inutoc . command to create the .toc file for the bff package, What about Solaris & Linux ? (0 Replies)
Hi,
I have a Solaris (SunOS 5.10) installed, by default with the en_AU.UTF-8 locale. I want to change it to en_US.UTF-8
With AU, I have no issues whatsoever, so I installed the language package and now locale -a shows "en_US.UTF-8".
Problem is even with LC_ALL set in etc/default/init, the... (2 Replies)
Hello,
i have installed a package by using the command
sudo rpm -i filepackage.rpm
package filepackage is already installed
when i try to remove it, i get an error saying "is not installed":
sudo rpm -e filepackage.rpm
error: package filepackage is not installed
How can... (4 Replies)
Hi,
I need to use the tool "meminfo" in the server, however am not able to as it says the package is not found.
I am also not able to find the package in the "HPUX Porting and Archive center".
Please guide on how to install this package?
Thanks,
Aigini (1 Reply)
Discussion started by: anaigini45
1 Replies
LEARN ABOUT DEBIAN
http::proxy::bodyfilter::simple
HTTP::Proxy::BodyFilter::simple(3pm) User Contributed Perl Documentation HTTP::Proxy::BodyFilter::simple(3pm)NAME
HTTP::Proxy::BodyFilter::simple - A class for creating simple filters
SYNOPSIS
use HTTP::Proxy::BodyFilter::simple;
# a simple s/// filter
my $filter = HTTP::Proxy::BodyFilter::simple->new(
sub { ${ $_[1] } =~ s/foo/bar/g; }
);
$proxy->push_filter( response => $filter );
DESCRIPTION
HTTP::Proxy::BodyFilter::simple can create BodyFilter without going through the hassle of creating a full-fledged class. Simply pass a code
reference to the "filter()" method of your filter to the constructor, and you'll get the adequate filter.
Constructor calling convention
The constructor can be called in several ways, which are shown in the synopsis:
single code reference
The code reference must conform to the standard filter() signature:
sub filter {
my ( $self, $dataref, $message, $protocol, $buffer ) = @_;
...
}
It is assumed to be the code for the "filter()" method. See HTTP::Proxy::BodyFilter.pm for more details about the "filter()" method.
name/coderef pairs
The name is the name of the method ("filter", "begin", "end") and the coderef is the method itself.
See HTTP::Proxy::BodyFilter for the methods signatures.
METHODS
This filter "factory" defines the standard HTTP::Proxy::BodyFilter methods, but those are only, erm, "proxies" to the actual CODE
references passed to the constructor. These "proxy" methods are:
filter()
begin()
end()
Two other methods are actually HTTP::Proxy::BodyFilter::simple methods, and are called automatically:
init()
Initalise the filter instance with the code references passed to the constructor.
can()
Return the actual code reference that will be run, and not the "proxy" methods. If called with any other name than "begin", "end" and
"filter", calls UNIVERSAL::can() instead.
There is also a method that returns a boolean value:
will_modify()
The "will_modify()" method returns a scalar value (boolean) indicating if the filter may modify the body data. The default method
returns a true value, so you only need to set this value when you are absolutely certain that the filter will not modify data (or at
least not modify its final length).
Here's a simple example:
$filter = HTTP::Proxy::BodyFilter::simple->new(
filter => sub { ${ $_[1] } =~ s/foo/bar/g; },
will_modify => 0, # "foo" is the same length as "bar"
);
SEE ALSO
HTTP::Proxy, HTTP::Proxy::BodyFilter.
AUTHOR
Philippe "BooK" Bruhat, <book@cpan.org>.
COPYRIGHT
Copyright 2003-2006, Philippe Bruhat.
LICENSE
This module is free software; you can redistribute it or modify it under the same terms as Perl itself.
perl v5.12.4 2011-07-03 HTTP::Proxy::BodyFilter::simple(3pm)