Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: How to download a file

by projekt21 (Friar)
on Feb 26, 2002 at 12:24 UTC ( [id://147536]=note: print w/replies, xml ) Need Help??


in reply to How to download a file

Have a look at LWP::Simple to start with.

use LWP::Simple; my $url = "http://www.foo.com/mp3s/foo.mp3"; my $file = "/path/to/local/file/foo.mp3"; getstore($url, $file);
Plus some error handling and "use strict;" and maybe some more features and you'll be lucky.

alex pleiner <alex@zeitform.de>
zeitform Internet Dienste

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://147536]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2024-04-19 22:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found