The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
September 2000

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

Content-disposition IE5 bug: a solution

Posted by Leo on June 14, 2001 at 1:10 PM

A solution i found is :

- to define both the content-type and Content http://download?[params]&thefilename.xls-disposition *without the filename option* :

res.setHeader("Content-Type","application/msexcel" );
res.setHeader("Content-Disposition","attachment" );

if the file name is a concern, you may try a hack that works for php file on apache : http://server/script.php/param=val/file.xls
(eg replace the ? and & with / )

Btw, i wonder what the hell M$ developers smoke? Content-Disposition behavior is described in RFCs.

Leo






Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us