Internet Engineering Task Force (IETF) J. Levine Request for Comments: 6713 Taughannock Networks Category: Informational August 2012 ISSN: 2070-1721
Internet Engineering Task Force (IETF) J. Levine Request for Comments: 6713 Taughannock Networks Category: Informational August 2012 ISSN: 2070-1721
The 'application/zlib' and 'application/gzip' Media Types
“应用程序/zlib”和“应用程序/gzip”媒体类型
Abstract
摘要
This document defines the 'application/gzip' and 'application/zlib' media types for compressed data using the gzip and zlib compression formats.
本文档使用gzip和zlib压缩格式定义了压缩数据的“application/gzip”和“application/zlib”媒体类型。
Status of This Memo
关于下段备忘
This document is not an Internet Standards Track specification; it is published for informational purposes.
本文件不是互联网标准跟踪规范;它是为了提供信息而发布的。
This document is a product of the Internet Engineering Task Force (IETF). It represents the consensus of the IETF community. It has received public review and has been approved for publication by the Internet Engineering Steering Group (IESG). Not all documents approved by the IESG are a candidate for any level of Internet Standard; see Section 2 of RFC 5741.
本文件是互联网工程任务组(IETF)的产品。它代表了IETF社区的共识。它已经接受了公众审查,并已被互联网工程指导小组(IESG)批准出版。并非IESG批准的所有文件都适用于任何级别的互联网标准;见RFC 5741第2节。
Information about the current status of this document, any errata, and how to provide feedback on it may be obtained at http://www.rfc-editor.org/info/rfc6713.
有关本文件当前状态、任何勘误表以及如何提供反馈的信息,请访问http://www.rfc-editor.org/info/rfc6713.
Copyright Notice
版权公告
Copyright (c) 2012 IETF Trust and the persons identified as the document authors. All rights reserved.
版权所有(c)2012 IETF信托基金和确定为文件作者的人员。版权所有。
This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (http://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Simplified BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Simplified BSD License.
本文件受BCP 78和IETF信托有关IETF文件的法律规定的约束(http://trustee.ietf.org/license-info)自本文件出版之日起生效。请仔细阅读这些文件,因为它们描述了您对本文件的权利和限制。从本文件中提取的代码组件必须包括信托法律条款第4.e节中所述的简化BSD许可证文本,并提供简化BSD许可证中所述的无担保。
zlib [RFC1950] and gzip [RFC1952] are widely used compression formats. zlib is a stream format, while gzip adds header and trailer fields more appropriate for a file format. Both implement the DEFLATE compression scheme described in [RFC1951].
zlib[RFC1950]和gzip[RFC1952]是广泛使用的压缩格式。zlib是一种流格式,而gzip添加了更适合文件格式的头和尾字段。两者都实现[RFC1951]中所述的放气压缩方案。
They are used to compress a wide variety of material, from unstructured text to structured data to executable code.
它们用于压缩各种材料,从非结构化文本到结构化数据再到可执行代码。
Some applications have informally used media types such as application/gzip-compressed, application/gzipped, application/ x-gunzip, application/x-gzip, application/x-gzip-compressed, and gzip/document to describe data compressed with gzip. The media types defined in this document should replace those media types in future applications.
一些应用程序非正式地使用了媒体类型,如application/gzip compressed、application/gzip、application/x-gzip、application/x-gzip-compressed和gzip/document来描述用gzip压缩的数据。本文档中定义的媒体类型应在将来的应用程序中替换这些媒体类型。
The 'application/zlib' media type describes a block of data that is compressed using zlib [RFC1950] compression. The data is a stream of bytes as described in RFC 1950.
“application/zlib”媒体类型描述使用zlib[RFC1950]压缩的数据块。数据是RFC 1950中描述的字节流。
Type name: application
类型名称:应用程序
Subtype name: zlib
子类型名称:zlib
Required parameters: N/A
所需参数:不适用
Optional parameters: N/A
可选参数:不适用
Encoding considerations: Binary
编码注意事项:二进制
Security considerations: See Section 4 below.
安全注意事项:见下文第4节。
Interoperability considerations: N/A
互操作性注意事项:不适用
Published specification: [RFC1950]
已发布规范:[RFC1950]
Applications that use this media type: anywhere data size is an issue
使用此介质类型的应用程序:anywhere数据大小是一个问题
Additional information: Magic number(s): first byte is usually 0x78 but can also be 0x08, 0x18, 0x28, 0x38, 0x48, 0x58, or 0x68. The first two bytes, when interpreted as an unsigned 16-bit number in big-endian byte order, contain a value that is a multiple of 31.
附加信息:幻数:第一个字节通常是0x78,但也可以是0x08、0x18、0x28、0x38、0x48、0x58或0x68。前两个字节在按大端字节顺序解释为无符号16位数字时,包含一个31的倍数。
File extension(s): N/A Macintosh file type code(s): N/A
File extension(s): N/A Macintosh file type code(s): N/A
Person and email address to contact for further information: see http://www.zlib.net/
Person and email address to contact for further information: see http://www.zlib.net/
Intended usage: COMMON
预期用途:普通
Restrictions on usage: N/A
使用限制:不适用
Author: John Levine
作者:约翰·莱文
Change controller: IETF
更改控制器:IETF
The 'application/gzip' media type describes a block of data that is compressed using gzip [RFC1952] compression. The data is a stream of bytes as described in RFC 1952.
“application/gzip”媒体类型描述使用gzip[RFC1952]压缩的数据块。数据是RFC1952中描述的字节流。
Type name: application
类型名称:应用程序
Subtype name: gzip
子类型名称:gzip
Required parameters: N/A
所需参数:不适用
Optional parameters: N/A
可选参数:不适用
Encoding considerations: Binary
编码注意事项:二进制
Security considerations: See Section 4 below.
安全注意事项:见下文第4节。
Interoperability considerations: N/A
互操作性注意事项:不适用
Published specification: [RFC1952]
已发布规范:[RFC1952]
Applications that use this media type: anywhere data size is an issue
使用此介质类型的应用程序:anywhere数据大小是一个问题
Additional information: Magic number(s): first two bytes are 0x1f, 0x8b. File extension(s): gz Macintosh file type code(s): N/A
Additional information: Magic number(s): first two bytes are 0x1f, 0x8b. File extension(s): gz Macintosh file type code(s): N/A
Person and email address to contact for further information: see http://www.gzip.org/
Person and email address to contact for further information: see http://www.gzip.org/
Intended usage: COMMON
预期用途:普通
Restrictions on usage: N/A
使用限制:不适用
Author: John Levine
作者:约翰·莱文
Change controller: IETF
更改控制器:IETF
zlib and gzip compression can be used to compress arbitrary binary data such as hostile executable code. Also, data that purports to be in zlib or gzip format may not be, and fields that are supposed to be flags, lengths, or pointers could contain anything. Applications should treat any data with due skepticism.
zlib和gzip压缩可用于压缩任意二进制数据,如恶意可执行代码。此外,声称是zlib或gzip格式的数据可能不是,而应该是标志、长度或指针的字段可以包含任何内容。应用程序应以应有的怀疑态度对待任何数据。
Also see the security considerations in the underlying format documents: Section 5 of [RFC1950], Section 6 of [RFC1951], and Section 4 of [RFC1952].
另请参见基础格式文档中的安全注意事项:[RFC1950]第5节、[RFC1951]第6节和[RFC1952]第4节。
IANA has updated the "Application Media Types" registry to include 'application/zlib' as described in Section 2 and 'application/gzip' as described in Section 3.
IANA已更新“应用程序媒体类型”注册表,包括第2节所述的“应用程序/zlib”和第3节所述的“应用程序/gzip”。
[RFC1950] Deutsch, P. and J-L. Gailly, "ZLIB Compressed Data Format Specification version 3.3", RFC 1950, May 1996.
[RFC1950]Deutsch,P.和J-L.Gailly,“ZLIB压缩数据格式规范3.3版”,RFC 1950,1996年5月。
[RFC1951] Deutsch, P., "DEFLATE Compressed Data Format Specification version 1.3", RFC 1951, May 1996.
[RFC1951]Deutsch,P.,“DEFLATE压缩数据格式规范1.3版”,RFC1951,1996年5月。
[RFC1952] Deutsch, P., "GZIP file format specification version 4.3", RFC 1952, May 1996.
[RFC1952]Deutsch,P.,“GZIP文件格式规范版本4.3”,RFC1952,1996年5月。
Author's Address
作者地址
John Levine Taughannock Networks PO Box 727 Trumansburg, NY 14886
纽约州杜鲁曼斯堡市约翰·莱文·塔甘诺克网络公司邮政信箱727号,邮编14886
Phone: +1 831 480 2300 EMail: standards@taugh.com
Phone: +1 831 480 2300 EMail: standards@taugh.com