I have tried to download the 8mb index.all file from the Gutenburg Project website with LWP::UserAgent but it only gets around 5mb. With wget I gets the full file, is there some limit in LWP? I have tried LWP::Agent many times and it gets between 4mb-5.2mb.
my $url = 'https://www.gutenberg.org/dirs/GUTINDEX.ALL'; my $file = '/home/philip/APPLICATIONS/GUTINDEX.ALL'; say $url; my $browser = LWP::UserAgent->new(); my $response = $browser->get($url); open my $fp,">",$file || die "Error saving book $!\n"; print $fp $response->content(); close $fp;
In reply to LWP file size by grasshopper!!!
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |