It will print out the HTTP header (including cookies) and the full body for a URL given on the command line.
#!/usr/bin/perl -w use LWP::UserAgent; my $ua = LWP::UserAgent->new( keep_alive => 1, timeout => 30, debug => 1 ); my $body = $ua->get($ARGV[0]); print $body->as_string;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: LWP Analysis
by merlyn (Sage) on Jan 05, 2007 at 15:54 UTC | |
by ikegami (Patriarch) on Jan 05, 2007 at 16:36 UTC | |
by merlyn (Sage) on Jan 05, 2007 at 16:44 UTC | |
|
Re: LWP Analysis
by ww (Archbishop) on Jan 05, 2007 at 16:04 UTC | |
by spatterson (Pilgrim) on Jan 08, 2007 at 16:08 UTC |