Variations on content compression

Compression of Content is usueally done with a Content-Encoding header and a value of 'gzip' (RFC1952) or 'deflate' (RFC1951). Most browsers additionally accept RFC1950 compressed data (zlib) if 'deflate' is specified. Some browsers also support compression with the Transfer-Encoding header, which is actually specified in the HTTP RFC, but most browsers don't. Some browsers just guess the encoding, e.g. accept gzip even if deflate is specified. And some browsers accept x-gzip and x-deflate specifications, and some even specifications like "x gzip" or "gzip x". Most browsers accept multiple content-encoding headers, even if it does not make much sense to compress content twice with the same encoding.

VALID: correct compressed requests

content-encoding gzip, served gzipped
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

content-encoding "x-gzip", served gzipped
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

content-encoding deflate, served with deflate
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

content-encoding deflate mixed case, served with deflate
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

"Content-encoding: <lots-of-spaces> gzip", served with gzip
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

"Content-encoding: <lots-of-spaces> deflate", served with deflate
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

UNCOMMON_VALID: various kinds of flush between compression parts

content-encoding gzip, served gzipped with 2 compressed blocks with partial flush in between
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

content-encoding deflate, served with deflate with 2 compressed blocks with partial flush in between
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

content-encoding gzip, served gzipped with 2 compressed blocks with block flush in between
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

content-encoding deflate, served with deflate with 2 compressed blocks with block flush in between
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

content-encoding gzip, served gzipped with 2 compressed blocks with sync flush in between
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

content-encoding deflate, served with deflate with 2 compressed blocks with sync flush in between
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

content-encoding gzip, served gzipped with 2 compressed blocks with full flush in between
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

content-encoding deflate, served with deflate with 2 compressed blocks with full flush in between
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

content-encoding gzip, served gzipped with 2 compressed blocks with finish in between
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

content-encoding deflate, served with deflate with 2 compressed blocks with finish in between
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

INVALID: only part of data compressed, followed by uncompressed data

content-encoding gzip, first segment compressed with gzip, next uncompressed
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

content-encoding deflate, first segment compressed with deflate, next uncompressed
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

content-encoding deflate, first segment compressed with zlib, next uncompressed
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

content-encoding deflate, first segment compressed with zlib but ADLER32 removed, next with deflate in new TCP packet
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

content-encoding deflate, first segment compressed with zlib but ADLER32 removed, next with deflate in new chunk with chunked encoding
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

content-encoding deflate, first segment compressed with zlib but ADLER32 removed, next two with deflate in new TCP packets
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

content-encoding deflate, first segment compressed with zlib but ADLER32 removed, next two with deflate in new chunk with chunked encoding
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

VALID: lzma (supported by at least Opera)

content-encoding lzma, lzma1 (lzma_alone) encoded
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

VALID: brotli (supported by at least Firefox when used with https)

content-encoding br, encoded with brotli
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

content-encoding:<11xspaces>br, encoded with brotli
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

INVALID: gzip header combined with zlib (RFC1952) instead of deflate (RFC1951)

content-encoding gzip, encoded with zlib prefixed by gzip header
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

VALID: less common but valid requests

content-encoding deflate, served with RFC1950 style deflate (zlib)
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

content-encoding deflate, served with RFC1950 style deflate (zlib) with 2 compressed blocks
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

content-encoding gzip but with continuation line, served gzipped
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

content-encoding deflate but with continuation line, served with deflate
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

content-encoding deflate but with double continuation line, served with deflate
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

content-encoding "deflate,", served with deflate
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

content-encoding "deflate<nl> ,", served with deflate
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

content-encoding "deflate<nl> ,<nl> ", served with deflate
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

INVALID: transfer-encoding with compression should not be supported

transfer-encoding gzip, served gzipped
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

transfer-encoding deflate, served with deflate
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

transfer-encoding and content-encoding gzip, gzipped twice
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

VALID: double encodings

double content-encoding header gzip, served twice gzipped
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

single content-encoding header "gzip,gzip", served twice gzipped
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

double content-encoding header deflate, compressed twice with deflate
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

single content-encoding header "deflate,deflate", compressed twice with deflate
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

single content-encoding header "deflate<nl> ,<nl> deflate", compressed twice with deflate
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

single content-encoding header "deflate<nl> ,<nl> deflate<nl> ", compressed twice with deflate
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

content-encoding header for gzip and deflate, content compressed in this order
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

single content-encoding "gzip,deflate", content compressed in this order
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

content-encoding header for deflate and gzip, content compressed in this order
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

single content-encoding header "deflate,gzip", content compressed in this order
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

content-encoding header for gzip and deflate and in the middle a X-Foo:\n, content compressed in this order
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

content-encoding header for gzip and deflate and in the middle a X-Foo:\r, content compressed in this order
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

INVALID: using "content-encoding: identity"

"content-encoding:identity", served without encoding
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

twice "content-encoding:identity", served without encoding
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

"content-encoding:identity,identity", served without encoding
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

content-encoding header for identity and gzip, compressed with gzip
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

single content-encoding "identity,gzip", compressed with gzip
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

content-encoding header for gzip and identity, compressed with gzip
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

single content-encoding header "gzip,identity", compressed with gzip
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

content-encoding header for identity and deflate, compressed with deflate
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

single content-encoding "identity,deflate", compressed with deflate
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

content-encoding header for deflate and identity, compressed with deflate
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

single content-encoding header "deflate,identity", compressed with deflate
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

content-encoding headers for gzip and chunked, compressed with gzip
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

content-encoding headers for chunked and gzip, compressed with gzip
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

content-encoding headers for deflate and chunked, compressed with deflate
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

content-encoding headers for chunked and deflate, compressed with deflate
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

VALID: triple encodings

served gzip + deflate + gzip, separate content-encoding header
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

served gzip + deflate + gzip, single content-encoding header
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

served gzip + deflate + gzip, two content-encoding headers
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

served deflate + gzip + gzip, separate content-encoding header
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

served deflate + gzip + deflate, single content-encoding header
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

served deflate + gzip + deflate, two content-encoding headers
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

served deflate + identity + gzip, three content-encoding headers
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

INVALID: specified double encodings, but content not or only once encoded or in the wrong order

double content-encoding header gzip, but served with single gzip
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

double content-encoding header gzip, but served without encoding
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

double content-encoding header deflate, but served with single deflate
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

double content-encoding header deflate, but server without encoding
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

content-encoding header for gzip and deflate, compressed in opposite order
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

content-encoding header for gzip and deflate, but served only with single deflate
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

content-encoding header for gzip and deflate, but server only with single gzip
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

content-encoding header for gzip and deflate, server without encoding
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

single content-encoding header for "gzip,deflate", compressed in opposite order
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

single content-encoding header for "gzip,deflate", but served with single deflate
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

single content-encoding header for "gzip,deflate", but served with single gzip
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

single content-encoding header for "gzip,deflate", but served without encoding
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

content-encoding header for deflate and gzip, compressed in opposite order
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

content-encoding header for deflate and gzip, but served only with single gzip
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

content-encoding header for deflate and gzip, but server only with single deflate
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

content-encoding header for deflate and gzip, server without encoding
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

single content-encoding header for "deflate,gzip", compressed in opposite order
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

single content-encoding header for "deflate,gzip", but served with single gzip
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

single content-encoding header for "deflate,gzip", but served with single deflate
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

single content-encoding header for "deflate,gzip", but served without encoding
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

INVALID: incorrect compressed response, should not succeed

content-encoding x-deflate, served with deflate
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

content-encoding x-deflate, served with RFC1950 style deflate (zlib)
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

content-encoding "gzipx", served with gzip
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

content-encoding "xgzip", served with gzip
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

content-encoding "gzip x", served with gzip
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

content-encoding "x gzip", served with gzip
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

content-encoding deflate but served with gzip
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

content-encoding gzip but served with decode
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

content-encoding "deflate", not encoded
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

content-encoding "deflate,", not encoded
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

content-encoding "deflate<nl> ,", not encoded
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

content-encoding "deflate<nl> ,<nl> ", not encoded
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

INVALID: invalid content-encodings should not be ignored

content-encoding "gzip x", but not encoded
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

content-encoding deflate + "gzip x", but only deflated
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

content-encoding "gzip x" + deflate, but only deflated
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

"content-encoding:foo" and no encoding
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

"content-encoding:rfc2047(deflate)" and no encoding
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

"content-encoding:rfc2047(deflate)" with encoding
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

VALID: transfer-encoding should be ignored for compression

transfer-encoding gzip but not compressed
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

INVALID: "Hiding the Content-encoding header"

"Content-Encoding<space>: deflate", served with deflate
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

"Content-Encoding<space>: deflate", served not with deflate
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

"Content-Encoding<space>: gzip", served with gzip
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

"Content-Encoding<space>: gzip", served not with gzip
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

"Content-Encoding:: deflate", served with deflate
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

"Content-Encoding:: deflate", served not with deflate
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

"Content-Encoding:: gzip", served with gzip
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

"Content-Encoding:: gzip", served not with gzip
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

Content-Encoding with only <CR> as line delimiter before, served deflate
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

Only <CR> as line delimiter followed by "xContent-Encoding", served deflate
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

Content-Encoding with only <CR> as line delimiter before, not served deflate
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

Content-Encoding with only <CR> as line delimiter before, served gzip
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

Only <CR> as line delimiter followed by "xContent-Encoding", served gzip
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

Content-Encoding with only <CR> as line delimiter before, not served gzip
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

Content-Encoding with only <LF> as line delimiter before, served deflate
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

Content-Encoding with only <LF> as line delimiter before, not served deflate
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

Content-Encoding with only <LF> as line delimiter before, served gzip
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

Content-Encoding with only <LF> as line delimiter before, not served gzip
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

Content-Encoding:<CR>deflate, served with deflate
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

Content-Encoding:<CR>deflate, not served with deflate
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

Content-Encoding:<CR><space>deflate, served with deflate
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

Content-Encoding:<CR><space>deflate, not served with deflate
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

Content-Encoding:<CR>gzip, served with gzip
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

Content-Encoding:<CR>gzip, not served with gzip
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

Content-Encoding:<CR><space>gzip, served with gzip
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

Content-Encoding:<CR><space>gzip, not served with gzip
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

INVALID: slightly invalid gzip encodings

wrong gzip magic header
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

wrong compression method 88 instead of 08
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

set flag FTEXT
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

set flag FHCRC without having CRC
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

set flag FHCRC and add CRC with 0
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

set flag FHCRC and add CRC with 1
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

set flag FEXTRA and extra part with XLEN 0
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

set flag FEXTRA and extra part with XLEN 5
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

set flag FEXTRA and XLEN 5 but no extra part
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

gzip, but hide the real (deflate) payload inside the EXTRA part
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

set flag FNAME and add short file name
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

set flag FCOMMENT and add short comment
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

set flag reserved bit 5
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

set flag reserved bit 6
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

set flag reserved bit 7
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

invalidate final checksum
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

invalidate length
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

remove length
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

remove checksum and length
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

remove length but set content-length header to original size
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

remove checksum and length but set content-length header to original size
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

remove length and close with eof without sending length
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

remove checksum and and close with eof without sending length
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

set flag FTEXT (hide gzip with "content-encoding:\r gzip")
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

set flag FHCRC and add CRC with 0 (hide gzip with "content-encoding:\r gzip")
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

set flag FNAME and add short file name (hide gzip with "content-encoding:\r gzip")
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

set flag FCOMMENT and add short comment (hide gzip with "content-encoding:\r gzip")
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

set flag FEXTRA and extra part with XLEN 0 (hide gzip with "content-encoding:\r gzip")
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

set flag FEXTRA and extra part with XLEN 5 (hide gzip with "content-encoding:\r gzip")
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

set flag reserved bit 5 (hide gzip with "content-encoding:\r gzip")
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

set flag reserved bit 6 (hide gzip with "content-encoding:\r gzip")
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

set flag reserved bit 7 (hide gzip with "content-encoding:\r gzip")
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

invalidate final checksum (hide gzip with "content-encoding:\r gzip")
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

invalidate length (hide gzip with "content-encoding:\r gzip")
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

remove length (hide gzip with "content-encoding:\r gzip")
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

remove checksum and length (hide gzip with "content-encoding:\r gzip")
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

set flag FTEXT (hide gzip with "content-encoding : gzip")
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

set flag FHCRC and add CRC with 0 (hide gzip with "content-encoding : gzip")
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

set flag FNAME and add short file name (hide gzip with "content-encoding : gzip")
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

set flag FCOMMENT and add short comment (hide gzip with "content-encoding : gzip")
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

set flag FEXTRA and extra part with XLEN 0 (hide gzip with "content-encoding : gzip")
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

set flag FEXTRA and extra part with XLEN 5 (hide gzip with "content-encoding : gzip")
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

set flag reserved bit 5 (hide gzip with "content-encoding : gzip")
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

set flag reserved bit 6 (hide gzip with "content-encoding : gzip")
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

set flag reserved bit 7 (hide gzip with "content-encoding : gzip")
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

invalidate final checksum (hide gzip with "content-encoding : gzip")
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

invalidate length (hide gzip with "content-encoding : gzip")
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

remove length (hide gzip with "content-encoding : gzip")
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

remove checksum and length (hide gzip with "content-encoding : gzip")
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

set flag reserved bit 5, chunked
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

set flag reserved bit 6, chunked
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

set flag reserved bit 7, chunked
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

invalidate final checksum, chunked
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

invalidate length, chunked
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

remove length, chunked
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

remove checksum and length, chunked
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

remove length but set content-length header to original size, chunked
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

remove checksum and length but set content-length header to original size, chunked
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

remove length and close with eof without sending length, chunked
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

remove checksum and and close with eof without sending length, chunked
IMAGE
SCRIPT
 load EICAR  load eicar.zip 

new line at start of gzip body
IMAGE
SCRIPT
 load EICAR  load eicar.zip