in reply to (Guildenstern) Re: Getting CGI to name a file it returns
in thread Getting CGI to name a file it returns
Aha. I was sure there was a way to do it without faking out
stupid browsers... there'd be hell to pay if ever anyone
actually made a good, smart browser!
Now that I know what to look for, I was searching through cgi.pm, I found some code dealing with Content-Disposition, and looks like they've got it covered through the Attachment parameter:
--
I write the code while the master is away!
Now that I know what to look for, I was searching through cgi.pm, I found some code dealing with Content-Disposition, and looks like they've got it covered through the Attachment parameter:
Thanks!print $query->header(-type=>'application/octet-stream', -attachment=>'foo.doc');
--
I write the code while the master is away!
|
---|
In Section
Seekers of Perl Wisdom