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")
I have absolutely zero preference
Results (37 votes),