morgon has asked for the wisdom of the Perl Monks concerning the following question:
all of a sudden I have a strange problem with WWW::Mechanize that I've boiled down to this:
What happens is that the output file contains only part of the expected content (a fragment of an html-document that looks as if it is truncated somewhere).use WWW::Mechanize(); my $mech = WWW::Mechanize->new; $mech->agent_alias( 'Linux Mozilla' ); my $url = "http://www.economist.com/news/world-week/21716670-politics- +week/print"; $mech->get($url, ":content_file" => "output.html");
wget has no problems to download the url correctly.
What could be the issue here?
Many thanks!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: problem with WWW::Mech
by LanX (Saint) on Feb 11, 2017 at 21:02 UTC | |
| |
|
Re: problem with WWW::Mech
by morgon (Priest) on Feb 11, 2017 at 21:21 UTC | |
by morgon (Priest) on Feb 11, 2017 at 21:24 UTC |