NAME
Ixchel::functions::file_get - Fetches a file file via URL.
VERSION
Version 0.0.1
SYNOPSIS
use Ixchel::functions::file_get;
my $file=file_get(url=>'https://raw.githubusercontent.com/quadrantsec/sagan/main/etc/sagan.yaml');
Functions
file_get
Any protocol understood via LWP may be used.
If it failes to fetch it, it will die.
- url :: The URL to fetch. Required.
- ftp :: FTP proxy to use. Optional.
- http :: HTTP proxy to use. Optional.
- https :: HTTPS proxy to use. Optional.
If the $ENV variables below are set, they will be used for proxy info, but the ones above will take president over that and set the env vars.
$ENV{FTP_PROXY}
$ENV{HTTP_PROXY}
$ENV{HTTPS_PROXY}