Kerala Cyber Warriors
KCW Uploader V1.1

Path : /usr/share/doc/libwww-perl/examples/
File Upload :
Current File : //usr/share/doc/libwww-perl/examples/handler-order.pl

#!/usr/bin/perl

use strict;
use warnings;
use feature qw( say );

use LWP::UserAgent;
my $ua = LWP::UserAgent->new;

my @phases = (
    'request_preprepare', 'request_prepare',
    'request_send',       'response_header',
    'response_data',      'response_done',
    'response_redirect',
);

for my $phase (@phases) {
    $ua->add_handler($phase => sub { say "$phase"; return undef; });
}

$ua->get('http://example.com');

-=[ KCW uplo4d3r c0ded by cJ_n4p573r ]=-
Ⓒ2017 ҠЄГѦLѦ СүѣЄГ ЩѦГГіѺГՏ