I'm developing a cgi application which offers many files for download - each with a unique password. I use the following logic:
1) Client requests file.
2) Return HTML form requesting the password.
3) Upon verifying the password, send the file.
When I return the file, I send in the HTTP header:
Everything works fine except...
My Question: How can I suggest a filename to the browser instead of having the browser derive one from the original url (ie. the name of the script)?