10 entries, 1 page |
1
2
3
4
5
6
7
print $cgi->header(
-type => 'text/html',
-expires => '+30s',
-cookie => $cookie,
-charset => 'utf-8',
# -attachment => 'bar.jpg',
);
Quote\n\nperldoc CGI
The -attachment parameter can be used to turn the page into an attachment. Instead of displaying the page, some browsers will prompt the user to save it to disk. The value of the argument is the suggested name for the saved file. In order for this to work, you may have to set the -type to "application/octet-stream".
-Content_Disposition => "attachment; filename=irgend.was"
10 entries, 1 page |