You are here: Re: What html element can I use for "download/save file as" box? « HTML « IT news, forums, messages
Re: What html element can I use for "download/save file as" box?

Posted by John Dunlop on 10/28/06 09:08

Andy Dingley:

[...]

> If you want to "recommend" saving rather than display, then send a
> content-type that's likely to do this for most browsers. As you don't
> say what your content is, then it's hard to recommend one (although
> application/octet-stream might do the trick).

RFC2616 : 19.5.1 says:

| If [Content-Disposition] is used in a response with the
| application/octet-stream content-type, the implied
| suggestion is that the user agent should not display
| the response, but directly enter a `save response
| as...' dialog.

http://www.ietf.org/rfc/rfc2616.txt

Not only do I find this paragraph odd and wholly unnecessary, coming
from (an appendix of) the HTTP spec, but I also regard
Content-Disposition (spit!) on the WWW as pernicious. Don't get me
wrong, I think Content-Disposition has its place - mail rather than the
WWW.

--
Jock

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация