in reply to Getting CGI to name a file it returns
usually putting (uh... memory slipping...) false file information after the actual path will do the trick.
so rather than
http://foo.com/cgi-bin/bar.cgi
have
http://foo.com/cgi-bin/bar.cgi/baz.doc
and most browsers will save the script's output as baz.doc. This trick should not affect the execution of your script under Apache or IIS.
In Section
Seekers of Perl Wisdom