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; }
In reply to Grabbing Web Page to process by dennis5775
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |