| Server IP : 50.21.180.56 / Your IP : 216.73.216.224 Web Server : Apache System : Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux User : ws67922704 ( 67922704) PHP Version : 8.5.13 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /kunden/proc/thread-self/root/proc/self/root/usr/share/doc/libwww-perl/examples/ |
Upload File : |
#!/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');