I have a cgi script that generate html content on the fly. I want the browser to prompt the file save dialog instead of showing the html content when user click on the cgi hyperlink. The problem is, how do I force the browser to prompt the file save dialog?
I have tried to send the header 'Content-Type: application/octet-stream' or 'Content-Type: application/x-msdownload' to the browser, but the browser still show the html instead of prompt the file save dialog.
Any other idea?
ttest
thum@starwarsfan.com
I have tried to send the header 'Content-Type: application/octet-stream' or 'Content-Type: application/x-msdownload' to the browser, but the browser still show the html instead of prompt the file save dialog.
Any other idea?
ttest
thum@starwarsfan.com