Astro-DSS
view release on metacpan or search on metacpan
# loop round all the options keys and build the query
foreach my $key ( keys %{$self->{OPTIONS}} ) {
$options = $options .
"&$key=${$self->{OPTIONS}}{$key}" if defined ${$self->{OPTIONS}}{$key};
}
# build final query URL
$URL = $URL . $options;
# build request
my $request = new HTTP::Request('GET', $URL);
# grab page from web
my $reply = $ua->request($request);
# declare file name
my $file_name;
if ( ${$reply}{"_rc"} eq 200 ) {
if ( ${${$reply}{"_headers"}}{"content-type"}
eq "application/octet-stream" ) {
( run in 0.348 second using v1.01-cache-2.11-cpan-de7293f3b23 )