in reply to how to download files from the web

LWP::UserAgent should fit your needs.