At 10:16 AM -0500 2/27/03, Richard Morse wrote:
On Thursday, February 27, 2003, at 08:03 AM, Bob Mariotti wrote:

1) no dialog box appears and the file is automatically downloaded and stored in some obscure directory somewhere where the user cannot find it; ow 2) a dialog box will appear but the directory setting is obscure and the filename is the name of the perl cgi program.

So, for those of you who do this and have experienced this symptom and overcome it, please share with us the output that will work for this situation?


So, for issue 1, it's really a setting of the browser -- different browsers will handle things differently. Netscape will probably ask, but it looks as though IE and Safari probably don't.


For issue 2, I've been having problems with this recently as well. It used to be that it was sufficient to make sure that the URL ended with the filename -- I would often write scripts that included a pointless redirect to the exact same place with '/filename.ext' appended to the end of the query string. It may still work for some browsers.

You can try setting the filename in the MIME headers. I don't remember the details exactly, but there was a way to do this when doing file attachments in e-mail, and I'd bet that it works the same way for HTTP transfers, as they use the MIME headers.
--
Dan


--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
[EMAIL PROTECTED]                         have teddy bears and even
                                      teddy bears get drunk
_______________________________________________
Boston-pm mailing list
[EMAIL PROTECTED]
http://mail.pm.org/mailman/listinfo/boston-pm

Reply via email to