(Fwd) saving info returned from a servlet
by "Kae Verens" <kverens(at)orbism.com>
|
| Date: |
Tue, 11 Jul 2000 18:51:56 +0100 |
| To: |
hwg-servers(at)hwg.org |
| |
todo: View
Thread,
Original
|
|
I think the answer to this is in the headers - any ideas?
------- Forwarded message follows -------
Subject: saving info returned from a servlet
Hi there,
a serlvet question for y'all...
If I have a servlet that returns information with its "Content-Type"
header set to "application/octet-stream", the browser tries to save
the information as a file.
However, when it brings up the save file dialog box, it has filled in
the name of the file as the name of the servlet. But if the servlet
is returning different files, thats not the desired behavior :)
Does anybody how to change this, as in is there some HTTP
header I
can
set
that the browser will take as being the file's name?
I've tried "Content-Location" and "Location" but they didn't work :(
in other words, if the url to the servlet is
http://server/viewfile?filename=blah.txt
, the browser wants to save the file as "viewfile", whereas I want it
to save the file as "blah.txt"....any ideas?
------- End of forwarded message -------
+================================================+
| Contact Juggler http://www.contactjuggling.org | Kae
| System Administrator http://www.orbism.com | Verens
+================================================+
HWG: hwg-servers mailing list archives,
maintained by Webmasters @ IWA
This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.