From be973b6f91a2116a2c68c9d0d0e8a5f3fc6e23c6 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 8 Apr 2011 22:58:06 +0200 Subject: test1124: verify gzip AND chunked transfer-encoding --- tests/data/Makefile.am | 2 +- tests/data/test1124 | 68 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 69 insertions(+), 1 deletion(-) create mode 100644 tests/data/test1124 diff --git a/tests/data/Makefile.am b/tests/data/Makefile.am index 7d3938a4c..1c64507ef 100644 --- a/tests/data/Makefile.am +++ b/tests/data/Makefile.am @@ -71,7 +71,7 @@ EXTRA_DIST = test1 test108 test117 test127 test20 test27 test34 test46 \ test1203 test1117 test1118 test1119 test1120 test1300 test1301 test1302 \ test1303 test320 test321 test322 test323 test324 test1121 test581 test580 \ test1304 test1305 test1306 test1307 test582 test583 test808 test809 \ - test810 test811 test812 test813 test584 test1122 test1123 + test810 test811 test812 test813 test584 test1122 test1123 test1124 filecheck: @mkdir test-place; \ diff --git a/tests/data/test1124 b/tests/data/test1124 new file mode 100644 index 000000000..6914756de --- /dev/null +++ b/tests/data/test1124 @@ -0,0 +1,68 @@ + + + +HTTP +HTTP GET +compressed +Transfer-Encoding +chunked + + +# +# Server-side + + +SFRUUC8xLjEgMjAwIE9LDQpEYXRlOiBNb24sIDI5IE5vdiAyMDI0IDIxOjU2OjUzIEdNVA0KU2Vy +dmVyOiBTb21ldGhpbmctVEUtZnJpZW5kbHkvMC4xDQpWYXJ5OiBBY2NlcHQtRW5jb2RpbmcNCkNv +bnRlbnQtVHlwZTogdGV4dC9odG1sOyBjaGFyc2V0PUlTTy04ODU5LTENClRyYW5zZmVyLUVuY29k +aW5nOiBnemlwLCBjaHVua2VkDQoNCjE0DQofiwgIeZ6rQQADbGFsYWxhAMvJzA0KMTgNCktVMORS +yAHRRlwKEIYxFwAKAnFgGAAAAA0KMA0KDQo= + + + +HTTP/1.1 200 OK +Date: Mon, 29 Nov 2024 21:56:53 GMT +Server: Something-TE-friendly/0.1 +Vary: Accept-Encoding +Content-Type: text/html; charset=ISO-8859-1 +Transfer-Encoding: gzip, chunked + +line 1 + line 2 + line 3 + + + + +# +# Client-side + + +libz + + +http + + +HTTP GET gzip+chunked transfer-encoded content + + +http://%HOSTIP:%HTTPPORT/1124 -H "TE: gzip" + + + +# +# Verify data after the test has been "shot" + + +^User-Agent:.* + + +GET /1124 HTTP/1.1 +Host: %HOSTIP:%HTTPPORT +Accept: */* +TE: gzip + + + + -- cgit v1.2.3