http::proxy::bodyfilter::htmltext(3pm) [debian man page]
HTTP::Proxy::BodyFilter::htmltext(3pm) User Contributed Perl Documentation HTTP::Proxy::BodyFilter::htmltext(3pm)NAME
HTTP::Proxy::BodyFilter::htmltext - A filter to transmogrify HTML text
SYNOPSIS
use HTTP::Proxy::BodyFilter::tags;
use HTTP::Proxy::BodyFilter::htmltext;
# could it be any simpler?
$proxy->push_filter(
mime => 'text/html',
response => HTTP::Proxy::BodyFilter::tags->new,
response => HTTP::Proxy::BodyFilter::htmltext->new(
sub { tr/a-zA-z/n-za-mN-ZA-M/ }
)
);
DESCRIPTION
The HTTP::Proxy::BodyFilter::htmltext is a filter spawner that calls the callback of your choice on any HTML text (outside "<script>" and
"<style>" tags, and entities).
The subroutine should modify the content of $_ as it sees fit. Simple, and terribly efficient.
METHODS
The filter defines the following methods, called automatically:
init()
Ensures that the filter is initialised with a CODE reference.
begin()
Per page parser initialisation.
filter()
A simple HTML parser that runs the given callback on the text contained in the HTML data. Please look at
HTTP::Proxy::BodyFilter::htmlparser if you need something more elaborate.
SEE ALSO
HTTP::Proxy, HTTP::Proxy::BodyFilter, HTTP::Proxy::BodyFilter::htmlparser.
AUTHOR
Philippe "BooK" Bruhat, <book@cpan.org>.
COPYRIGHT
Copyright 2003-2005, 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::htmltext(3pm)
Check Out this Related Man Page
HTTP::Proxy::BodyFilter::tags(3pm) User Contributed Perl Documentation HTTP::Proxy::BodyFilter::tags(3pm)NAME
HTTP::Proxy::BodyFilter::tags - A filter that outputs only complete tags
SYNOPSIS
use HTTP::Proxy::BodyFilter::tags;
use MyFilter; # this filter only works on complete tags
my $filter = MyFilter->new();
# note that both filters will be run on the same messages
# (those with a MIME type of text/html)
$proxy->push_filter(
mime => 'text/*',
response => HTTP::Proxy::BodyFilter::tags->new
);
$proxy->push_filter( mime => 'text/html', response => $filter );
DESCRIPTION
The HTTP::Proxy::BodyFilter::tags filter makes sure that the next filter in the filter chain will only receive complete tags.
METHOD
This class defines two methods, that are called automatically:
filter()
Buffer incomplete tags to ensure that subsequent filters will only receive complete HTML tags.
will_modify()
This method returns a false value, thus indicating to the system that it will not modify data passing through.
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::tags(3pm)
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)
Hello,
I am a newbie over here. I am planning to subscribe Safesquid-Content Filtering Internet Proxy Server
for my enterprise. Have any one of you use this software before? Any feedback will be appreciated.
www.safesquid.com and www.safesquid.com/forum.
Thanks,
David (1 Reply)
I have an architecture as below
<> <>
There is a program in the AIX server which sends SMS to the internet, by sending HTTP request to the SMS processing server.
Like, http://smsserver/mysms=test
However the application does not have an option to specify where the Proxy server... (1 Reply)
Hi All,
I am establishing the proxy server to communicate the date between devices using serial port but after serial port connection,it should start the Proxy Server and still run till the communication is happening...but server became started but it became halted due to error -
Please... (1 Reply)
I encounter frequently a problem when installing Perl modules as follows:
perl -MCPAN -e 'install Family::Module'
The error message is:
Proxy must be specified as absolute URI; ' ' is not at /usr/local/lib/perl5/5.8.8/CPAN.pm line 2357
even though I am not behind a proxy. Forcing to install the... (4 Replies)
Can any one direct me to the resources where I can find in-depth instructions on Squid Proxy server and its configuration?
Thanks in advance.:) (1 Reply)
Hi there, I'm quite new to the forum and shell scripting.
I want to filter out the "166.0 points". The results, that i found in google / the forum search didn't helped me :(
<a href="/user/test" class="headitem menu" style="color:rgb(83,186,224);">test</a><a href="/points" class="headitem... (1 Reply)
Hi there if I have a file called an411
which contains the folowing information
152.78.74.111 "GET /datafeed.php HTTP/1.1" 200 2826
152.78.74.211 "GET /index.html HTTP/1.1" 200 1190
152.78.74.121 "GET / HTTP/1.1" 200 3000
and I want to ouput the number of bytes of the record that contains... (2 Replies)
Simple Http Proxy Server Checker Script with curl
mirror proxies-scripts/proxc at master * Anoncheg1/proxies-scripts * GitHub
output in terminal
HTTP, HTTP Connect (HTTPS not supported)
command line:
proxc filename
where filename is file like
119.110.69.185:8080
119.235.16.41:8080... (4 Replies)
I need to filter the text in between two patterns and output that to a different file. Please help me how to do it.
Ex:
.............
<some random text>
.............
Pattern_1
<Few lines that need to be output to different file>
Pattern_2
................
...............
<more text in... (4 Replies)
Centos Behind The Proxy Server In My System , How Can I Set In Terminal Proxy ( Username & Password )
When Using The Command yum & rpm online I Will Respond Error
Thank You For Your Guidance (28 Replies)
Hi,
I'm trying to write a script to determine the time gap between HTTP PUT and HTTP DELETE requests in the HTTP Servers access log.
Normally client will do HTTP PUT to push content e.g. file_1.txt and 21 seconds later it will do HTTP DELETE, but sometimes the time varies causing some issues... (3 Replies)