in reply to How to get post parameters and print/log them in Perl
Sure, here you are:
my %parameters = params; [download]