diff options
author | Daniel Stenberg <daniel@haxx.se> | 2005-07-12 18:15:34 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2005-07-12 18:15:34 +0000 |
commit | 465e19dbe9603bacba53bd73a607d5fbb37c08a4 (patch) | |
tree | 8219b5bd5b34befa4c71e3f9e39bd05f1fbf911d /tests/data/test266 | |
parent | 86660c73e5d27e8dcd689f7dd10e003299d1d066 (diff) |
Adrian Schuur added trailer support in the chunked encoding stream. The
trailer is then sent to the normal header callback/stream.
Diffstat (limited to 'tests/data/test266')
-rw-r--r-- | tests/data/test266 | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/tests/data/test266 b/tests/data/test266 new file mode 100644 index 000000000..f3c613293 --- /dev/null +++ b/tests/data/test266 @@ -0,0 +1,76 @@ +<info> +<keywords> +HTTP +HTTP GET +chunked Transfer-Encoding +</keywords> +</info> +# +# Server-side +<reply> +<data> +HTTP/1.1 200 funky chunky!
+Server: fakeit/0.9 fakeitbad/1.0
+Transfer-Encoding: chunked
+Trailer: chunky-trailer
+Connection: mooo
+
+40
+aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
+30
+bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
+21;heresatest=moooo
+cccccccccccccccccccccccccccccccc +
+0
+chunky-trailer: header data
+
+</data> +<datacheck> +HTTP/1.1 200 funky chunky!
+Server: fakeit/0.9 fakeitbad/1.0
+Transfer-Encoding: chunked
+Trailer: chunky-trailer
+Connection: mooo
+
+aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbcccccccccccccccccccccccccccccccc +</datacheck> +</reply> + +# +# Client-side +<client> +<server> +http +</server> + <name> +HTTP GET with chunked Transfer-Encoding and chunked trailer + </name> + <command> +http://%HOSTIP:%HTTPPORT/266 -D log/heads266 +</command> +</client> + +# +# Verify data after the test has been "shot" +<verify> +<strip> +^User-Agent:.* +</strip> +<protocol> +GET /266 HTTP/1.1
+Host: 127.0.0.1:%HTTPPORT
+Accept: */*
+
+</protocol> +<file name="log/heads266"> +HTTP/1.1 200 funky chunky!
+Server: fakeit/0.9 fakeitbad/1.0
+Transfer-Encoding: chunked
+Trailer: chunky-trailer
+Connection: mooo
+
+chunky-trailer: header data
+</file> +</verify> + |