ASPN ActiveState Programmer Network
  ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups | Web Services
SEARCH
advanced | search help

Reference
ActivePerl 5.6
Programs
GET
HEAD
POST
SOAPsh
XMLRPCsh
c2ph
cpan
dprofpp
enc2xs
exetype
find2perl
h2ph
h2xs
libnetcfg
lwp-download
lwp-mirror
lwp-request
lwp-rget
perlbug
perlcc
perlglob
perlivp
piconv
pl2bat
pl2pm
pod2html
pod2latex
pod2man
pod2text
pod2usage
podchecker
podselect
ppm
ppm3
ppm3-bin
psed
pstruct
ptked
ptksh
reloc perl
runperl
s2p
splain
widget
xsubpp

MyASPN >> Reference >> ActivePerl 5.6 >> Programs

 lwp-download - Fetch large files from the web


NAME

lwp-download - Fetch large files from the web


SYNOPSIS

 lwp-download [-a] <url> [<local file>]


DESCRIPTION

The lwp-download program will down load the document specified by the URL given as the first command line argument to a local file. The local filename used to save the document is guessed from the URL unless specified as the second command line argument.

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.


EXAMPLE

Fetch the newest and greatest perl version:

 $ lwp-download http://www.perl.com/CPAN/src/latest.tar.gz
 Saving to 'latest.tar.gz'...
 1.47 MB received in 22 seconds (68.7 KB/sec)


AUTHOR

Gisle Aas <gisle@aas.no>

 lwp-download - Fetch large files from the web


Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState 2004 All rights reserved