Hi,
Didn't visit this forum for a long time, so all coding when't fine.......
But, today I wanted to implement the following sub in a script. The only thing is that the visitor can see the original location in the addressbar of the browser. I tried to to let the script read the pdf-file and output it, but didn't succeed on the (correct) outputting. Actually, that wouldn't be a smart solution because the most pdf-files I would like to offer are rather big.
Does anyone has a good solution or idea?
sub pdf_download {
# --------------------------------------------------------
my $filename = shift;
my $location = "http://www.domain.com/secure" . $filename . ".pdf";
print "Location: $location\n\n";
}
Didn't visit this forum for a long time, so all coding when't fine.......
But, today I wanted to implement the following sub in a script. The only thing is that the visitor can see the original location in the addressbar of the browser. I tried to to let the script read the pdf-file and output it, but didn't succeed on the (correct) outputting. Actually, that wouldn't be a smart solution because the most pdf-files I would like to offer are rather big.
Does anyone has a good solution or idea?
Code:
sub pdf_download {
# --------------------------------------------------------
my $filename = shift;
my $location = "http://www.domain.com/secure" . $filename . ".pdf";
print "Location: $location\n\n";
}