Help language development. Donate to The Perl Foundation
Fetch remote file using http.
$ zef install Sparrowdo::RemoteFile
$ cat sparrowfile
module-run 'RemoteFile', %(
url => 'https://github.com/melezhik/remote-file/archive/master.zip',
location => '/tmp/foo/bar/master.zip'
);
Remote file url. No default value. Obligatory.
A local file path where to store a downloaded file. No default value. Obligatory.
Sets user name for resources with access restricted by http basic authentication. Optional, no default value.
Sets password for resources with access restricted by http basic authentication. Optional, no default value.
You may set Http headers for request:
headers => (
"Name: Alexey",
"LastName: Melezhik"
)