Skip to content

melezhik/remote-file

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SYNOPSIS

Fetch remote file using http.

INSTALL

$ zef install Sparrowdo::RemoteFile

USAGE

$ cat sparrowfile

module-run 'RemoteFile', %(
    url       => 'https://github.com/melezhik/remote-file/archive/master.zip',
    location  => '/tmp/foo/bar/master.zip'
);

Parameters

url

Remote file url. No default value. Obligatory.

location

A local file path where to store a downloaded file. No default value. Obligatory.

user

Sets user name for resources with access restricted by http basic authentication. Optional, no default value.

password

Sets password for resources with access restricted by http basic authentication. Optional, no default value.

headers

You may set Http headers for request:

headers => (
  "Name: Alexey",
  "LastName: Melezhik"
)

Author

Alexey Melezhik

About

Fetch remote file using http

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages