Don't know if there's a header to set the name, but you can link to your script with http://host/cgi-bin/example.cgi/filename to cause the browser to think it's viewing filename. If you can't link to a static filename, you could have the cgi print out a Location header at runtime.