http://qs321.pair.com?node_id=97082


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.