rahulruns has asked for the wisdom of the Perl Monks concerning the following question:
Need to download a file from a website I have tried using LWP::Simple and curl but the connection closes before the entire file is downloaded. The file size is around 20MB and only around 6MB is downloaded
LWP::Simple code use LWP::Simple; my $url = 'https://cwiki.apache.org/confluence/display/PIG/PigTutoria +l'; my $file = 'pigtutorial.tar.gz'; my $status = getstore($url, $file); die "Error $status on $url" unless is_success($status); CURL code my $url = `curl -C - -o pigtutorial.tar.gz https://cwiki.apache.org/co +nfluence/display/PIG/PigTutorial`;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Download a file from website
by frozenwithjoy (Priest) on Sep 13, 2012 at 08:06 UTC | |
by rahulruns (Scribe) on Sep 13, 2012 at 08:10 UTC | |
by rahulruns (Scribe) on Sep 13, 2012 at 10:23 UTC | |
|
Re: Download a file from website
by Anonymous Monk on Sep 13, 2012 at 07:54 UTC | |
by rahulruns (Scribe) on Sep 13, 2012 at 08:08 UTC |