Re: How to force a file download to save

Paul Copeland <[email protected]>
Newsgroups gmane.comp.java.sun.servlet
Organization JOT Object Technologies
Message-ID <[email protected]>
Jason - It looks like the IE problem with not forcing a file save with
"attachment" in a Content-Disposition header (which you describe in the
book excerpt) was fixed starting with IE 6.x (and with patches for IE
5.5).  In addition to violating the HTTP spec, this IE bug was part of a
security flaw that could cause automatic invocation of a virus in the
downloaded file.  The content type sniffing rules for IE still override
the Content-Type header for responses without the Content-Disposition
header.  It's a feature, not a bug :-)

-- Paul Copeland, JOT Object Technologies - http://www.jotobjects.com

> ------------------------------
>
> Date:    Mon, 26 May 2003 11:56:39 -0700
> From:    Jason Hunter <[email protected]>
> Subject: Re: How to force a file download to save
>
>
>>To force the file download to save, use :
>
>
> I wrote about this problem in the "Java Enterprise Best Practices" book,
> and the servlet chapter is online for free.  This topic is in the third
> part:
>
> http://www.onjava.com/pub/a/onjava/excerpt/jebp_3/index3.html
>
> Basically there's the way it's supposed to work and then there's the way
> it really works taking into account buggy browsers (and browser
> developers who think they know better than spec authors).
>
> -jh-
>

___________________________________________________________________________
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.