dennis5775 has asked for the wisdom of the Perl Monks concerning the following question:
For some reason when this prints out I only get like the last third of the web site. Not sure why. I am assuming it is truncated in my variable. Can anyone explain what I am missing ?
#!/usr/bin/perl -w use strict; use warnings; require LWP::UserAgent; my $ua = LWP::UserAgent->new; $ua->timeout(10); $ua->env_proxy; my $response = $ua->get('http://www.herald-journal.com/government/pub +licnotices/2015-legals/hj010515.html'); if ($response->is_success) { print $response->decoded_content; # or whatever } else { die $response->status_line; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Grabbing Web Page to process
by Anonymous Monk on Jan 06, 2015 at 02:26 UTC | |
|
Re: Grabbing Web Page to process
by locked_user sundialsvc4 (Abbot) on Jan 06, 2015 at 13:45 UTC | |
by Anonymous Monk on Jan 07, 2015 at 09:33 UTC | |
by dennis5775 (Initiate) on Jan 07, 2015 at 18:13 UTC |