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] [-s] <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 last segment of the path of the
17       url is appended to form a local filename.  If the url path ends with
18       slash the name "index" is used.  With the -s option pick up the last
19       segment of the filename from server provided sources like the Content-
20       Disposition header or any redirect URLs.  A file extension to match the
21       server reported Content-Type might also be appended.  If a file with
22       the produced filename already exists, then lwp-download will prompt
23       before it overwrites and will fail if its standard input is not a
24       terminal.  This form of invocation will also fail is no acceptable
25       filename can be derived from the sources mentioned above.
26
27       If local path is not a directory, then it is simply used as the path to
28       save into.  If the file already exists it's overwritten.
29
30       The lwp-download program is implemented using the libwww-perl library.
31       It is better suited to down load big files than the lwp-request program
32       because it does not store the file in memory.  Another benefit is that
33       it will keep you updated about its progress and that you don't have
34       much options to worry about.
35
36       Use the "-a" option to save the file in text (ascii) mode.  Might make
37       a difference on dosish systems.
38

EXAMPLE

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

AUTHOR

47       Gisle Aas <gisle@aas.no>
48
49
50
51perl v5.12.4                      2010-05-05                   LWP-DOWNLOAD(1)
Impressum