chen li wrote:
Hi all,
I need to download some files from a website. I try
lwp-download and it works fine. But the problem is
that it only supports downloading one file for each
request. Is it possible to ask it download several
files((such as files.*) by issueing one line code ?
Thanks,
Li
###
c:\lwp-download http://www/web/site/page1.html
this line code can only download one page page1.html
only. But I need to download several files in this
format page*.html.
Hi
lwp-download will fetch only one file at a time, but consider writing a batch
file containing multiple activations. A good alternative is Wget, which was
written for this sort of thing and isn't simply a spinoff from a Perl module;
look at http://www.gnu.org/software/wget/.
One final note: you can't in general download wildcarded filenames from an http
server since there is no general way to get a directory listing from such a
site. But Wget will check and download the links within an HTML document for
you.
HTH,
Rob
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>