Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

BooK (2612)

  {book} {at} {}
Yahoo! ID: philippe_bruhat (Add User, Send Message)

Obfuscation []. Pink []. HTTP::Proxy []. YEF []. Fishnet []. Kapow []. Cog's [] bitch []. Invitation []. White [] Camel []. Nuff' said.

Journal of BooK (2612)

Monday March 15, 2004
10:36 AM

A new filter for HTTP::Proxy!

[ #17913 ]

The next version of HTTP::Proxy will include a shiny new filter named HTTP::Proxy::BodyFilter::save. It can be used to save the files you want while you browse them. Here's a short example:

use HTTP::Proxy;
use HTTP::Proxy::BodyFilter::save;

my $proxy = HTTP::Proxy->new;
$proxy->logmask( shift );

# save RFC files as we browse them
    path => qr!/rfc\d+.txt!,
    mime => 'text/plain',
    response => HTTP::Proxy::BodyFilter::save->new(
        template => '%f',  # %f is the filename
        prefix   => 'rfc', # prefix is a directory
        multiple => 0,
        keep_old => 1,


Now, every time I browse a page that matches m!/rfc\d+\.txt!, the RFC file is automatically saved in the rfc/ directory. Cool.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.