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)

Saturday February 05, 2005
06:28 AM

HTTP::Proxy is actually useful for me!

[ #23025 ]

I'm looking at to buy cheap computer books. Problem is, they just give the ISBN, and the usual information. That's not enough for me when the title rings a bell, and I want to find out if that book could actually interest me or not.

So, in about 5 minutes, I whipped up an integration of this site, thanks to HTTP::Proxy:

    host     => '',
    response => HTTP::Proxy::BodyFilter::simple->new(
        sub {
             my ( $self, $dataref, $message, $protocol, $buffer ) = @_;
             $$dataref =~ s!ISBN: (\d+X?)!<a href="$1/">ISBN: $1</a>!g;

And voilà!, now I can click the ISBN and see what Amazon reviewers have to say about it. Lazyness is rewarded, again.

My personal proxy on is just a collection of small filters that "correct and enhance" those few web sites I visit more or less regularly. I'm afraid that's the only way HTTP::Proxy is really useful: it will not change the web experience for your whole corporate network (not until I can link it up with mod_proxy), but it'll make your web experience more satisfying. Usually with very little work.

Now, if I only had the time to release that next version...

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.