I have a CGI Python script script.py running on a server. It creates a CSV file as output. I want computer inexperienced people who are not aware of file extensions to just save the file to their hard drive and use it with a double click.
Problem: if they now click "OK" in the browser save dialog, the name of the saved file is script.py instead of script.csv .
How can I set some kind of "default file name" from CGI? Maybe some kind of HTTP header trick? I do not have access to the server configuration.
source share