1LWP-DOWNLOAD(1)       User Contributed Perl Documentation      LWP-DOWNLOAD(1)
2
3
4

NAME

6       lwp-download - Fetch large files from the web
7

SYNOPSIS

9       lwp-download [-a] <url> [<local path>]
10

DESCRIPTION

12       The lwp-download program will save the file at url to a local file.
13
14       If local path is not specified, then the current directory is assumed.
15
16       If local path is a directory, then the basename of the file to save is
17       picked up from the Content-Disposition header or the URL of the
18       response.  If the file already exists, then lwp-download will prompt
19       before it overwrites and will fail if its standard input is not a ter‐
20       minal.  This form of invocation will also fail is no acceptable file‐
21       name can be derived from the sources mentioned above.
22
23       If local path is not a directory, then it is simply used as the path to
24       save into.
25
26       The lwp-download program is implemented using the libwww-perl library.
27       It is better suited to down load big files than the lwp-request program
28       because it does not store the file in memory.  Another benefit is that
29       it will keep you updated about its progress and that you don't have
30       much options to worry about.
31
32       Use the "-a" option to save the file in text (ascii) mode.  Might make
33       a difference on dosish systems.
34

EXAMPLE

36       Fetch the newest and greatest perl version:
37
38        $ lwp-download http://www.perl.com/CPAN/src/latest.tar.gz
39        Saving to 'latest.tar.gz'...
40        11.4 MB received in 8 seconds (1.43 MB/sec)
41

AUTHOR

43       Gisle Aas <gisle@aas.no>
44
45
46
47perl v5.8.8                       2006-07-12                   LWP-DOWNLOAD(1)
Impressum