httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eric ng <>
Subject Content-Disposition
Date Thu, 31 May 2001 17:30:49 GMT
I have a file download servlet serves web browsers.

request to file is like this
The file on the server side is song.mp3.  But the file
got download to browser is the servlet name instead. 

I heard i need to use the HTTP header
filename=\"" + downloadFile + "\";"); 

Is Content-Disposition a standard in HTTP spec?  I
heard i should use this when ever I don't want the
content display on browser.

Why everytime I download a file from the web server
like song.mp3. there is no such HTTP header? -->

Why if I sent a file from servlet to web browser, i
need to use Content-Disposition?

Any other way I can make the file name on the server
is same as file get (Save as) to web browser?


Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!

View raw message