Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Mangle HTML on-the-fly using HTTP::Proxy

by fizbin (Chaplain)
on Oct 16, 2005 at 20:02 UTC ( [id://500607]=CUFP: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $proxy->push_filter( mime     => 'text/html',
                         response => utf8HeaderFilter->new(),
    ...
                         response =>
                         HTTP::Proxy::BodyFilter::htmlparser->new($parser,
    + rw => 1),
                         response => ToUtf8Filter->new() );
    
  2. or download this
    #!perl
    
    ...
                         response => ToUtf8Filter->new() );
    
    $proxy->start;
    
  3. or download this
    @/=map{[/./g]}qw/.h_nJ Xapou cets krht ele_ r_ra/;
    map{y/X_/\n /;print}map{pop@$_}@/for@/
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: CUFP [id://500607]
Approved by Corion
Front-paged by grinder
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2024-03-29 15:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found