HTTP
gzip
#
# Server-side
HTTP/1.1 200 swsclose OK
Content-Length: 6
Transfer-Encoding: gzip
Transfer-Encoding: gzip
Transfer-Encoding: gzip
Transfer-Encoding: gzip
Transfer-Encoding: gzip
Transfer-Encoding: gzip
Transfer-Encoding: gzip
Transfer-Encoding: gzip
Transfer-Encoding: gzip
-foo-
#
# Client-side
http
libz
Response with multiple Transfer-Encoding headers
http://%HOSTIP:%HTTPPORT/%TESTNUMBER -sS --tr-encoding
#
# Verify data after the test has been "shot"
GET /%TESTNUMBER HTTP/1.1
Host: %HOSTIP:%HTTPPORT
User-Agent: curl/%VERSION
Accept: */*
Connection: TE
TE: gzip
# CURLE_BAD_CONTENT_ENCODING is 61
61
curl: (61) Reject response due to more than 5 content encodings