in reply to Get a file with HTTP

There are two easier ways than using LWP::UserAgent if all you want to do is to download a file via HTTP: