<html>
<head>
<title>Redirect</title>
<meta http-equiv="refresh" content="0; URL=download.pl?filename=$f
+ilename">
</head>
</html>
My download.pl is what I posted on my first post:
use strict;
use warnings;
use CGI;
my $oCGI = new CGI;
my $p_filename= $oCGI->param("filename");
print "Content-Type: application/x-download\n";
print "Content-Disposition: attachment; filename=$p_filename.pdf\n\n";
unlink $p_filename;
So I'm going to call main.pl -> redirecting to download.pl and now I want to redirect from download.pl to justanotherscript.pl. But when redirecting to justanotherscript.pl I need to get the file download on the same step. |