Fetch remote file using http
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib/Sparrowdo
t
.gitignore
.travis.yml
Changes.md
META6.json
README
README.md
dist.ini
sparrowfile

README.md

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