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:
system(qw( wget -O ), $target_name, $url) == 0 or warn "Couldn't download '$url': $?/$!";
mirror( $url, $target_name );
|
|---|