三氯蔗糖是什么东西| 睡眠时间短早醒是什么原因| 冠冕堂皇是什么意思| 辩解是什么意思| 喜悦之情溢于言表什么意思| 漂洗什么意思| 吃什么补胰腺最好| 1234是什么意思| 脚踝疼痛是什么原因| 短发适合什么脸型| 什么是水象星座| 白细胞偏低是什么原因| 飞是什么结构| 办护照需要什么条件| 尿蛋白阳性什么意思| 拉绿色大便是什么原因| 细水长流是什么意思| 办身份证需要带什么| 吃什么祛湿| 湿气重怎么调理吃什么| 藿香正气水不能和什么药一起吃| 苯扎氯铵是什么| 什么东西能补肾壮阳| 胡说八道是什么意思| 10月24是什么星座| 贝尔发明了什么东西| 查艾滋病挂什么科| vivi是什么意思| 爱啃指甲是什么原因| 骨髓纤维化是什么病| 机器学习是什么| 下身瘙痒是什么原因| 菊花和金银花一起泡水有什么效果| 飞蛾吃什么东西| 人这一生为了什么| 鼻烟是什么东西| 胃窦在胃的什么位置| 胃酸反流是什么原因| 生津是什么意思| 王大锤真名叫什么| 数字专辑什么意思| 阿q精神是什么意思| 前列腺是什么症状| 西施长什么样| 蜂蜜有什么功效| 家伙是什么意思| 子宫肌腺症是什么病| 女生什么时候容易怀孕| 肌酐高有什么危害| 医院医务科是干什么的| 醪糟是什么东西| 什么的早晨| bea是什么意思| 什么掌不能拍| 柚子是什么季节的水果| 结节性硬化症是什么病| 鲶鱼是什么鱼| 羽丝绒是什么材料| 链球菌感染是什么病| 什么牌子的益生菌调理肠胃比较好| kelly是什么意思| cache什么意思| 电影下映是什么意思| 纳豆是什么东西| 蔚字五行属什么| 甲功五项挂什么科| 屁眼疼是什么原因| 惶恐是什么意思| 吃什么可以补钾| 额头长痘是什么原因引起的| 游山玩水是什么意思| 容易手麻脚麻是什么原因| 红枣和枸杞一起泡水喝有什么作用| 预防心肌梗塞吃什么药最好| 金银花长什么样子图片| pu是什么| 激素六项什么时间查最好| 蒺藜是什么意思| 这是什么猫| 脚趾缝脱皮是什么原因| 做雪糕需要什么材料| 龙日冲狗要忌讳什么| 脾胃湿热什么症状| 西瓜跟什么不能一起吃| 多吃什么可以长头发| 尿素是什么肥料| 纯原是什么意思| 护腕有什么用| 感冒了吃什么好的快| 生理曲度变直什么意思| 喝温开水有什么好处| 红斑狼疮是什么症状| 咳嗽去医院挂什么科| 茭白不能和什么一起吃| 产后大出血一般发生在什么时候| 思春是什么意思啊| 不可名状的名是什么意思| 输液葡萄糖有什么作用| 午睡后头疼是什么原因| 吃驼奶粉有什么好处| 吃灵芝有什么好处| 三叉神经痛有什么症状| 什么药可以降尿酸| 女人吃维生素b有什么好处| pv是什么意思| 牙齿根部发黑是什么原因| 刀枪不入是什么生肖| 额头凉凉的是什么原因| 抠鼻表情是什么意思| 药流挂什么科| 大便黑色的是什么原因| 什么是低烧| 手指抽筋是什么原因| 层出不穷是什么意思| 倍增是什么意思| 除日是什么意思| 为什么会有口臭| 五一年属什么生肖| 肺纤维灶是什么意思| 一个月一个并念什么| 寿司是什么| 狐臭和腋臭有什么区别| 刀子嘴豆腐心什么意思| 身体铅超标有什么危害| 经常呛咳是什么病的征兆| 甲状腺球蛋白低说明什么| 张柏芝什么星座| 有时头晕是什么原因| 7月2日什么星座| cd是什么意思啊| 为什么人要喝水| 分泌物过氧化氢阳性是什么意思| 带状疱疹长什么样| 眼睛老是流眼泪是什么原因| 身份证拍照穿什么衣服| 52年属什么生肖| 年底是什么时候| 荷尔蒙分泌是什么意思| 湿疹用什么药好得最快最有效| 苦尽甘来是什么意思| 贫血缺什么元素| 子夜是指什么时间| 得逞是什么意思| 什么叫做亚健康| 百里挑一是什么生肖| 下肢静脉血栓吃什么药| 11度穿什么衣服| 全国政协常委什么级别| dxm是什么药| 永浴爱河是什么意思| 喝什么茶降血压最好最快| 细胞是什么| 大宗商品是什么意思| 眉中间有竖纹代表什么| 冬虫夏草是什么东西| 翎字五行属什么| 四季春是什么茶| 尿频尿量少是什么原因| 属虎的本命佛是什么佛| 1970属什么| 利血平是什么药| 戍什么意思| 小孩头晕是什么原因| 撸管是什么| 红烧肉用什么肉| 小鱼缸适合养什么鱼| 喜欢穿黑色衣服的女人是什么性格| 足底血查什么| 血清载脂蛋白b偏高是什么意思| 折耳根是什么东西| 殉葬是什么意思| 大人睡觉流口水是什么原因引起的| 心跳过快是什么原因| 龟头瘙痒是什么原因| 胃打嗝是什么原因| 廉航是什么意思| 门第是什么意思| 血栓吃什么药化得快| 位图是什么意思| 女性下小腹痛挂什么科| 喉炎吃什么药效果最好| 霉菌性阴道炎是什么| 女人梦见龙是什么征兆| 0是什么数| 肛门里面疼是什么原因| 牙齿深覆合是什么意思| 什么东西止血最快| 脸大适合什么发型| 已售罄是什么意思| 淋巴结肿大是什么样子| 什么是意淫| 精索静脉曲张是什么原因导致的| 脑梗吃什么好| 3月18是什么星座| 术后吃什么营养品好| 中午十二点是什么时辰| 本加一笔是什么字| 什么是适度水解奶粉| 马杀鸡是什么意思| 女生的隐私部位长什么样| 吃什么东西对肝脏好| 南瓜什么人不能吃| 甘油三酯高是指什么| 梦见涨水是什么兆头| 服了是什么意思| 核桃不能和什么一起吃| 什么是对偶句| 原字五行属什么| 阿胶糕什么时候吃最好| 什么降血脂效果最好的| 盆腔积液吃什么药效果好| 周瑜是什么生肖| 头痛做什么检查| 无致病菌生长是什么意思| 三级医院什么意思| 九二年属什么| 用一什么就什么造句| 马上好药膏主治什么| 复试是什么意思| 6月12日是什么星座| 壳心念什么| 1957年发生了什么| 抵抗力差吃什么可以增强抵抗力| 是什么东西| 郝字五行属什么| 怡五行属性是什么| 发改委主任什么级别| 6月30日是什么节日| 情字五行属什么| 述求是什么意思| 男朋友过生日送什么礼物最有意义| 乳房结节是什么原因引起的| 举目无亲是什么生肖| 什么之交| 头疼是什么原因引起| 胳膊麻是什么原因| 714什么星座| 去威海玩需要准备什么| 脾胃虚弱吃什么药调理| 天方夜谭是什么生肖| 螺旋藻是什么东西| 塔罗牌能算什么| 今日是什么日子| 甲乙丙丁戊己庚辛壬癸代表什么| 下嘴唇有痣代表什么| 小孩子隔三差五流鼻血什么原因| 喘不上来气是什么原因| 麦芯粉是什么面粉| 血压高吃什么水果好| 什么药和酒一起吃必死| cbs是什么意思| 前列腺增生用什么药| 多囊卵巢是什么| 五月二十四是什么星座| 蒜薹和蒜苔有什么区别| 总胆汁酸高是什么意思| 经常耳鸣是为什么| 扶山是什么意思| 什么样的人容易得脑梗| 孕妇吃什么水果| 低筋面粉可以用什么代替| 什么是签注| 慢性咽炎吃什么药| 摆渡是什么意思| 百度

Network Working Group                                          R. Troost
Request for Comments: 1806                           New Century Systems
Category: Experimental                                         S. Dorner
                                                   QUALCOMM Incorporated
                                                               June 1995


               Communicating Presentation Information in
                           Internet Messages:
                     The Content-Disposition Header

Status of this Memo

   This memo defines an Experimental Protocol for the Internet
   community.  This memo does not specify an Internet standard of any
   kind.  Discussion and suggestions for improvement are requested.
   Distribution of this memo is unlimited.

Abstract

   This memo provides a mechanism whereby messages conforming to the
   [RFC 1521] ("MIME") specification can convey presentational
   information.  It specifies a new "Content-Disposition" header,
   optional and valid for any [RFC 1521] entity ("message" or "body
   part"). Two values for this header are described in this memo; one
   for the ordinary linear presentation of the body part, and another to
   facilitate the use of mail to transfer files. It is expected that
   more values will be defined in the future, and procedures are defined
   for extending this set of values.

   This document is intended as an extension to [RFC 1521]. As such, the
   reader is assumed to be familiar with [RFC 1521], and [RFC 822]. The
   information presented herein supplements but does not replace that
   found in those documents.

1.  Introduction

   [RFC 1521] specifies a standard format for encapsulating multiple
   pieces of data into a single Internet message. That document does not
   address the issue of presentation styles; it provides a framework for
   the interchange of message content, but leaves presentation issues
   solely in the hands of mail user agent (MUA) implementors.

   Two common ways of presenting multipart electronic messages are as a
   main document with a list of separate attachments, and as a single
   document with the various parts expanded (displayed) inline. The
   display of an attachment is generally construed to require positive
   action on the part of the recipient, while inline message components



Troost & Dorner               Experimental                      [Page 1]


RFC 1806                  Content-Disposition                  June 1995


   are displayed automatically when the message is viewed. A mechanism
   is needed to allow the sender to transmit this sort of presentational
   information to the recipient; the Content-Disposition header provides
   this mechanism, allowing each component of a message to be tagged
   with an indication of its desired presentation semantics.

   Tagging messages in this manner will often be sufficient for basic
   message formatting. However, in many cases a more powerful and
   flexible approach will be necessary. The definition of such
   approaches is beyond the scope of this memo; however, such approaches
   can benefit from additional Content-Disposition values and
   parameters, to be defined at a later date.

   In addition to allowing the sender to specify the presentational
   disposition of a message component, it is desirable to allow her to
   indicate a default archival disposition; a filename. The optional
   "filename" parameter provides for this.

2.  The Content-Disposition Header Field

   Content-Disposition is an optional header; in its absence, the MUA
   may use whatever presentation method it deems suitable.

   It is desirable to keep the set of possible disposition types small
   and well defined, to avoid needless complexity. Even so, evolving
   usage will likely require the definition of additional disposition
   types or parameters, so the set of disposition values is extensible;
   see below.

   In the extended BNF notation of [RFC 822], the Content-Disposition
   header field is defined as follows:

        disposition := "Content-Disposition" ":"
                       disposition-type
                       *(";" disposition-parm)

        disposition-type := "inline"
                          / "attachment"
                          / extension-token
                          ; values are not case-sensitive

        disposition-parm := filename-parm / parameter

        filename-parm := "filename" "=" value;

   `Extension-token', `parameter' and `value' are defined according to
   [RFC 822] and [RFC 1521].




Troost & Dorner               Experimental                      [Page 2]


RFC 1806                  Content-Disposition                  June 1995


2.1  The Inline Disposition Type

   A bodypart should be marked `inline' if it is intended to be
   displayed automatically upon display of the message. Inline bodyparts
   should be presented in the order in which they occur, subject to the
   normal semantics of multipart messages.

2.2  The Attachment Disposition Type

   Bodyparts can be designated `attachment' to indicate that they are
   separate from the main body of the mail message, and that their
   display should not be automatic, but contingent upon some further
   action of the user. The MUA might instead present the user of a
   bitmap terminal with an iconic representation of the attachments, or,
   on character terminals, with a list of attachments from which the
   user could select for viewing or storage.

2.3  The Filename Parameter

   The sender may want to suggest a filename to be used if the entity is
   detached and stored in a separate file. If the receiving MUA writes
   the entity to a file, the suggested filename should be used as a
   basis for the actual filename, where possible.

   It is important that the receiving MUA not blindly use the suggested
   filename.  The suggested filename should be checked (and possibly
   changed) to see that it conforms to local filesystem conventions,
   does not overwrite an existing file, and does not present a security
   problem (see Security Considerations below).

   The receiving MUA should not respect any directory path information
   that may seem to be present in the filename parameter.  The filename
   should be treated as a terminal component only.  Portable
   specification of directory paths might possibly be done in the future
   via a separate Content-Disposition parameter, but no provision is
   made for it in this draft.

   Current [RFC 1521] grammar restricts parameter values (and hence
   Content-Disposition filenames) to US-ASCII.  We recognize the great
   desirability of allowing arbitrary character sets in filenames, but
   it is beyond the scope of this document to define the necessary
   mechanisms.  We expect that the basic [RFC 1521] `value'
   specification will someday be amended to allow use of non-US-ASCII
   characters, at which time the same mechanism should be used in the
   Content-Disposition filename parameter.






Troost & Dorner               Experimental                      [Page 3]


RFC 1806                  Content-Disposition                  June 1995


   Beyond the limitation to US-ASCII, the sending MUA may wish to bear
   in mind the limitations of common filesystems.  Many have severe
   length and character set restrictions.  Short alphanumeric filenames
   are least likely to require modification by the receiving system.

   The presence of the filename parameter does not force an
   implementation to write the entity to a separate file. It is
   perfectly acceptable for implementations to leave the entity as part
   of the normal mail stream unless the user requests otherwise. As a
   consequence, the parameter may be used on any MIME entity, even
   `inline' ones. These will not normally be written to files, but the
   parameter could be used to provide a filename if the receiving user
   should choose to write the part to a file.

2.4  Future Extensions and Unrecognized Disposition Types

   In the likely event that new parameters or disposition types are
   needed, they should be registered with the IANA, in the manner
   specified in [RFC 1521], appendix E.

   Once new disposition types and parameters are defined, there is of
   course the likelihood that implementations will see disposition types
   and parameters they do not understand.  Furthermore, since x-tokens
   are allowed, implementations may also see entirely unregistered
   disposition types and parameters.

   Unrecognized parameters should be ignored. Unrecognized disposition
   types should be treated as `attachment'. The choice of `attachment'
   for unrecognized types is made because a sender who goes to the
   trouble of producing a Content-Disposition header with a new
   disposition type is more likely aiming for something more elaborate
   than inline presentation.

   Unless noted otherwise in the definition of a parameter, Content-
   Disposition parameters are valid for all dispositions.  (In contrast
   to [RFC 1521] content-type parameters, which are defined on a per-
   content-type basis.) Thus, for example, the `filename' parameter
   still means the name of the file to which the part should be written,
   even if the disposition itself is unrecognized.

2.5  Content-Disposition and Multipart

   If a Content-Disposition header is used on a multipart body part, it
   applies to the multipart as a whole, not the individual subparts.
   The disposition types of the subparts do not need to be consulted
   until the multipart itself is presented.  When the multipart is
   displayed, then the dispositions of the subparts should be respected.




Troost & Dorner               Experimental                      [Page 4]


RFC 1806                  Content-Disposition                  June 1995


   If the `inline' disposition is used, the multipart should be
   displayed as normal; however, an `attachment' subpart should require
   action from the user to display.

   If the `attachment' disposition is used, presentation of the
   multipart should not proceed without explicit user action.  Once the
   user has chosen to display the multipart, the individual subpart
   dispositions should be consulted to determine how to present the
   subparts.

2.6  Content-Disposition and the Main Message

   It is permissible to use Content-Disposition on the main body of an
   [RFC 822] message.

3.  Examples

   Here is a an example of a body part containing a JPEG image that is
   intended to be viewed by the user immediately:

         Content-Type: image/jpeg
         Content-Disposition: inline
         Content-Description: just a small picture of me

         <jpeg data>

   The following body part contains a JPEG image that should be
   displayed to the user only if the user requests it. If the JPEG is
   written to a file, the file should be named "genome.jpg":

         Content-Type: image/jpeg
         Content-Disposition: attachment; filename=genome.jpeg
         Content-Description: a complete map of the human genome

         <jpeg data>

   The following is an example of the use of the `attachment'
   disposition with a multipart body part.  The user should see text-
   part-1 immediately, then take some action to view multipart-2.  After
   taking action to view multipart-2, the user will see text-part-2
   right away, and be required to take action to view jpeg-1.  Subparts
   are indented for clarity; they would not be so indented in a real
   message.

         Content-Type: multipart/mixed; boundary=outer
         Content-Description: multipart-1

         --outer



Troost & Dorner               Experimental                      [Page 5]


RFC 1806                  Content-Disposition                  June 1995


           Content-Type: text/plain
           Content-Disposition: inline
           Content-Description: text-part-1

           Some text goes here

         --outer
           Content-Type: multipart/mixed; boundary=inner
           Content-Disposition: attachment
           Content-Description: multipart-2

           --inner
             Content-Type: text/plain
             Content-Disposition: inline
             Content-Description: text-part-2

             Some more text here.

           --inner
             Content-Type: image/jpeg
             Content-Disposition: attachment
             Content-Description: jpeg-1

             <jpeg data>
           --inner--
         --outer--

4.  Summary

   Content-Disposition takes one of two values, `inline' and
   `attachment'.  'Inline' indicates that the entity should be
   immediately displayed to the user, whereas `attachment' means that
   the user should take additional action to view the entity.

   The `filename' parameter can be used to suggest a filename for
   storing the bodypart, if the user wishes to store it in an external
   file.

5.  Security Considerations

   There are security issues involved any time users exchange data.
   While these are not to be minimized, neither does this memo change
   the status quo in that regard, except in one instance.

   Since this memo provides a way for the sender to suggest a filename,
   a receiving MUA must take care that the sender's suggested filename
   does not represent a hazard. Using UNIX as an example, some hazards
   would be:



Troost & Dorner               Experimental                      [Page 6]


RFC 1806                  Content-Disposition                  June 1995


          + Creating startup files (e.g., ".login").

          + Creating or overwriting system files (e.g.,
            "/etc/passwd").

          + Overwriting any existing file.

          + Placing executable files into any command search path
            (e.g., "~/bin/more").

          + Sending the file to a pipe (e.g., "| sh").

   In general, the receiving MUA should never name or place the file
   such that it will get interpreted or executed without the user
   explicitly initiating the action.

   It is very important to note that this is not an exhaustive list; it
   is intended as a small set of examples only.  Implementors must be
   alert to the potential hazards on their target systems.

6.  References

    [RFC 1521]
        Borenstein N., and N. Freed, "MIME (Multipurpose Internet
        Mail Extensions) Part One:  Mechanisms for Specifying and
        Describing the Format of Internet Message Bodies",
        RFC 1521, Bellcore, Innosoft, September 1993.

    [RFC 822]
        Crocker, D., "Standard for the Format of ARPA Internet
        Text Messages", STD 11, RFC 822, UDEL, August 1982.

7.  Acknowledgements

We gratefully acknowledge the help these people provided
during the preparation of this draft:

            Nathaniel Borenstein
            Ned Freed
            Keith Moore
            Dave Crocker
            Dan Pritchett









Troost & Dorner               Experimental                      [Page 7]


RFC 1806                  Content-Disposition                  June 1995


8.  Authors' Addresses

   Rens Troost
   New Century Systems
   324 East 41st Street #804
   New York, NY, 10017 USA

   Phone: +1 (212) 557-2050
   Fax: +1 (212) 557-2049
   EMail: rens@century.com


   Steve Dorner
   QUALCOMM Incorporated
   6455 Lusk Boulevard
   San Diego, CA 92121
   USA

   EMail: sdorner@qualcomm.com
































Troost & Dorner               Experimental                      [Page 8]
两融是什么意思 繁衍的衍是什么意思 唇炎抹什么药膏最有效 久旱逢甘露是什么意思 庚子是什么时辰
脚肿是什么原因引起的 牙疼用什么药 什么是二级医院 甘油是什么成分 co2是什么
男人跑马是什么意思 鸡眼膏为什么越贴越疼 开放性骨折是什么意思 查胆囊挂什么科 拾掇是什么意思
什么品牌的帽子好 vp是什么 上海有什么好玩的地方适合小孩子 日本旅游买什么东西最划算 吃盐吃多了有什么危害
莯字五行属什么hcv8jop1ns3r.cn 寻麻疹看什么科hcv9jop6ns2r.cn 耳洞发炎流脓用什么药hcv7jop5ns3r.cn 带沉香手串有什么好处hcv7jop6ns3r.cn 手发胀是什么原因造成的hcv8jop7ns9r.cn
备孕前要注意什么hcv7jop7ns2r.cn 脾虚的人有什么症状hcv7jop7ns0r.cn 梦见手抓屎是什么意思hcv8jop1ns3r.cn 梦见墓碑是什么意思hcv9jop7ns3r.cn 吃东西没有味道是什么原因hcv7jop9ns1r.cn
冰箱发烫是什么原因shenchushe.com 水漫金山是什么意思hcv7jop6ns1r.cn 什么情况下做心脏造影hkuteam.com 斑鸠是什么意思hcv9jop2ns9r.cn 茉莉花长什么样hlguo.com
感谢老师送什么花hcv9jop5ns5r.cn 吃什么排黑色素最强hcv7jop6ns7r.cn 婴儿为什么戴银不戴金wuhaiwuya.com 梦到车被撞了什么预兆hcv7jop5ns5r.cn 性激素六项什么时候查最准确aiwuzhiyu.com
百度