http://www.perlmonks.org?node_id=98555


in reply to Re: How do i return a file with CGI and suggest a file name to 'save as'
in thread How do i return a file with CGI and suggest a file name to 'save as'

PS - this doesn't work with all browsers. So, if you can, append your script URL as follows when you call it (this seems to sort out most situations):
http://my.domain/url/of_script.cgi/suggested_filename
where 'suggested_filename' is the name you want the file saved as.
  • Comment on Re: Answer: How do i return a file with CGI and suggest a file name to 'save as'
  • Download Code