io@COMP:C> perl -MLWP::UserAgent -e "print qq(
##
use strict;
use warnings;
use LWP::UserAgent ();
my $ua = LWP::UserAgent->new;
my $response = $ua->get('http://www.perlmonks.org/?node_id=1193449');
if ($response->is_success) {
print $response->decoded_content;
}
else {
die $response->status_line;
}
####
# just monitoring --verbosity 0 --count 4 --sleep 5
perl webtimeload023.pl -u http://www.perlmonks.org/?node_id=1193449 -v 0 -c 4 -s 5
Sat Jun 24 15:34:09 2017 http://www.perlmonks.org/?node_id=1193449 200 99562 2.126046 45.7321 Kb/s
Sat Jun 24 15:34:16 2017 http://www.perlmonks.org/?node_id=1193449 200 99599 1.986645 48.9592 Kb/s
Sat Jun 24 15:34:23 2017 http://www.perlmonks.org/?node_id=1193449 200 99192 2.064141 46.9286 Kb/s
Sat Jun 24 15:34:30 2017 http://www.perlmonks.org/?node_id=1193449 200 98852 1.972459 48.9415 Kb/s
# some detail more with --verbosity 4
perl webtimeload023.pl -u http://www.perlmonks.org/?node_id=1193449 -v 4
====================================================================
http://www.perlmonks.org/?node_id=1193449 Sat Jun 24 15:34:40 2017
--------------------------------------------------------------------
Response code: 200
Response message: OK
Response server: Apache/2.4.26
Response declared length: UNDEF
Response title: Web Crawling using Perl
--------------------------------------------------------------------
main page content (1): 31.8506 Kb in 1.248003 seconds @ 25.5212 Kb/s)
--------------------------------------------------------------------
detail of loaded pages (url):
--------------------------------------------------------------------
http://www.perlmonks.org/?node_id=1193449
--------------------------------------------------------------------
no included content found.
external content (1): 64.6660 Kb in 0.723429 seconds @ 89.3882 Kb/s)
no broken links found.
--------------------------------------------------------------------
detail of loaded content (url bytes seconds):
--------------------------------------------------------------------
http://promote.pair.com/i/pair-banner-current.gif 66218 0.723429
--------------------------------------------------------------------
downloaded 96.5166 Kb (98833 bytes) in 1.971432 seconds (48.9576 Kb/s)
====================================================================