diff options
author | Daniel Stenberg <daniel@haxx.se> | 2011-04-08 22:58:06 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2011-04-18 19:46:21 +0200 |
commit | be973b6f91a2116a2c68c9d0d0e8a5f3fc6e23c6 (patch) | |
tree | 6a4b379e4dbd1b159ea0e80b368e1d8180cc1f12 /tests/data/test1124 | |
parent | 2db6f7e703bda76872a0e05f2d5fe6c5a7ddaf74 (diff) |
test1124: verify gzip AND chunked transfer-encoding
Diffstat (limited to 'tests/data/test1124')
-rw-r--r-- | tests/data/test1124 | 68 |
1 files changed, 68 insertions, 0 deletions
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 @@ +<testcase> +<info> +<keywords> +HTTP +HTTP GET +compressed +Transfer-Encoding +chunked +</keywords> +</info> +# +# Server-side +<reply> +<data base64="yes"> +SFRUUC8xLjEgMjAwIE9LDQpEYXRlOiBNb24sIDI5IE5vdiAyMDI0IDIxOjU2OjUzIEdNVA0KU2Vy +dmVyOiBTb21ldGhpbmctVEUtZnJpZW5kbHkvMC4xDQpWYXJ5OiBBY2NlcHQtRW5jb2RpbmcNCkNv +bnRlbnQtVHlwZTogdGV4dC9odG1sOyBjaGFyc2V0PUlTTy04ODU5LTENClRyYW5zZmVyLUVuY29k +aW5nOiBnemlwLCBjaHVua2VkDQoNCjE0DQofiwgIeZ6rQQADbGFsYWxhAMvJzA0KMTgNCktVMORS +yAHRRlwKEIYxFwAKAnFgGAAAAA0KMA0KDQo= +</data> + +<datacheck> +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 +</datacheck> + +</reply> + +# +# Client-side +<client> +<features> +libz +</features> +<server> +http +</server> + <name> +HTTP GET gzip+chunked transfer-encoded content + </name> + <command> +http://%HOSTIP:%HTTPPORT/1124 -H "TE: gzip" +</command> +</client> + +# +# Verify data after the test has been "shot" +<verify> +<strip> +^User-Agent:.* +</strip> +<protocol> +GET /1124 HTTP/1.1
+Host: %HOSTIP:%HTTPPORT
+Accept: */*
+TE: gzip
+
+</protocol> +</verify> +</testcase> |