Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Getting CGI script to send a binary fileby prowler (Friar) |
on Feb 08, 2005 at 04:03 UTC ( [id://428903]=note: print w/replies, xml ) | Need Help?? |
Hi, In the CGI module (the 'CREATING A STANDARD HTTP HEADER' section) there is mention of the -attachment parameter: 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". I hope this helps. Prowler
In Section
Seekers of Perl Wisdom
|
|