in reply to Getting CGI to name a file it returns
Another way to do it is to use the Content-Disposition header.
Set the mimetype to "application/octet-stream", then add a header like this: "Content-Disposition: inline;filename=$filename\n".
Be sure to set the "Content-Length" header as well.
Guildenstern
Negaterd character class uber alles!
Set the mimetype to "application/octet-stream", then add a header like this: "Content-Disposition: inline;filename=$filename\n".
Be sure to set the "Content-Length" header as well.
Guildenstern
Negaterd character class uber alles!
In Section
Seekers of Perl Wisdom