It will print out the HTTP header (including cookies) and the full body for a URL given on the command line.
my $ua = LWP::UserAgent->new(
keep_alive => 1,
timeout => 30,
debug => 1
my $body = $ua->get($ARGV);
lwp-request -e http://www.example.com/
-- Randal L. Schwartz, Perl hacker
( or not. see the reply. )
Also, GET as you've invoked it doesn't show the headers.
Under winXP & AS 5.8.8 (819), and PRIOR to commenting out "debug => 1"OP's code spits out a warning
Unrecognized LWP::UserAgent options: debug at (line ref to "debug => 1")
By rote learning.
Via Genetic memory.
It's provided by my firmware.
I just remember them.
Thirty days hath September
My computer gets it right, usually.
I just ask someone else.
Someone punches me on the first of the month.
Results (109 votes),