LWP-DOWNLOADSection: User Contributed Perl Documentation (1)Updated: 2004-08-13 |
LWP-DOWNLOADSection: User Contributed Perl Documentation (1)Updated: 2004-08-13 |
lwp-download [-a] <url> [<local file>]
The lwp-download program is implemented using the libwww-perl library. It is better suited to down load big files than the lwp-request program because it does not store the file in memory. Another benefit is that it will keep you updated about its progress and that you don't have much options to worry about.
Use the "-a" option to save the file in text (ascii) mode. Might make a difference on dosish systems.
$ lwp-download http://www.perl.com/CPAN/src/latest.tar.gz Saving to 'latest.tar.gz'... 11.4 MB received in 8 seconds (1.43 MB/sec)