aboutsummaryrefslogtreecommitdiff
path: root/tests/data/test334
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2019-06-02 15:38:03 +0200
committerDaniel Stenberg <daniel@haxx.se>2019-06-02 22:58:11 +0200
commitb6b8f3a3845415be9ab4cde0092f7ce925091bd1 (patch)
tree158bb99f7e56a16518cb2089d1f72c685e1b6713 /tests/data/test334
parent2e5ceb3934a7bc5422c5a3a18daafa1b1af02090 (diff)
test334: verify HTTP 204 response with chunked coding header
Verifies that a bodyless response don't parse this content-related header.
Diffstat (limited to 'tests/data/test334')
-rw-r--r--tests/data/test33444
1 files changed, 44 insertions, 0 deletions
diff --git a/tests/data/test334 b/tests/data/test334
new file mode 100644
index 000000000..c02a65b8d
--- /dev/null
+++ b/tests/data/test334
@@ -0,0 +1,44 @@
+<testcase>
+<info>
+<keywords>
+HTTP
+204
+</keywords>
+</info>
+# Server-side
+<reply>
+<data>
+HTTP/1.1 204 No Content
+Date: Mon, 13 Nov 2000 13:41:09 GMT
+Server: myown/1.0
+Transfer-Encoding: chunked
+
+</data>
+</reply>
+
+# Client-side
+<client>
+<server>
+http
+</server>
+<name>
+HTTP 204 No content with chunked header
+</name>
+<command>
+http://%HOSTIP:%HTTPPORT/want/334
+</command>
+</client>
+
+# Verify data after the test has been "shot"
+<verify>
+<strip>
+^User-Agent:.*
+</strip>
+<protocol>
+GET /want/334 HTTP/1.1
+Host: %HOSTIP:%HTTPPORT
+Accept: */*
+
+</protocol>
+</verify>
+</testcase>