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
Levine Informational [Page 1]
RFC 6713 Media Types 'zlib' and 'gzip' August 2012 1. Introductionzlib [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].
2. The 'application/zlib' Media Type
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.
2.1. Registration Details
Type name: application
Levine Informational [Page 2]
RFC 6713 Media Types 'zlib' and 'gzip' August 2012
Person and email address to contact for further information: see http://www.zlib.net/
3. The 'application/gzip' Media Type
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.
3.1. Registration Details
Type name: application
Levine Informational [Page 3]
RFC 6713 Media Types 'zlib' and 'gzip' August 2012
Restrictions on usage: N/A
4. Security Considerations
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.
5. IANA Considerations
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.
6. Normative References
[RFC1950] Deutsch, P. and J-L. Gailly, "ZLIB Compressed Data Format