]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
test2406: verify -f with HTTP/2
authorDaniel Stenberg <daniel@haxx.se>
Fri, 19 Apr 2024 06:55:10 +0000 (08:55 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 19 Apr 2024 21:45:16 +0000 (23:45 +0200)
tests/data/Makefile.inc
tests/data/test2406 [new file with mode: 0644]

index 97e016708089b50a1412419a813e2d26c29055f9..fb94dd002a58e78f767768c3a28daa7affa8759f 100644 (file)
@@ -248,7 +248,7 @@ test2200 test2201 test2202 test2203 test2204 test2205 \
 \
 test2300 test2301 test2302 test2303 test2304 test2305 test2306 test2307 \
 \
-test2400 test2401 test2402 test2403 test2404 test2405 \
+test2400 test2401 test2402 test2403 test2404 test2405 test2406 \
 \
 test2500 test2501 test2502 test2503 \
 \
diff --git a/tests/data/test2406 b/tests/data/test2406
new file mode 100644 (file)
index 0000000..7055fee
--- /dev/null
@@ -0,0 +1,66 @@
+<testcase>
+<info>
+<keywords>
+HTTP
+HTTP GET
+HTTP/2
+HTTPS
+</keywords>
+</info>
+
+#
+# Server-side
+<reply>
+<data nocheck="yes">
+HTTP/1.1 404 nope\r
+Date: Tue, 09 Nov 2010 14:49:00 GMT\r
+Content-Length: 6\r
+Connection: close\r
+Content-Type: text/html\r
+Funny-head: yesyes\r
+\r
+-foo-
+</data>
+</reply>
+
+#
+# Client-side
+<client>
+<features>
+debug
+h2c
+SSL
+</features>
+<server>
+http
+http/2
+</server>
+<name>
+HTTP/2 with -f
+</name>
+<setenv>
+</setenv>
+<command>
+-k --http2 -f "https://%HOSTIP:%HTTP2TLSPORT/%TESTNUMBER"
+</command>
+
+</client>
+
+#
+# Verify data after the test has been "shot"
+<verify>
+<stdout crlf="yes">
+HTTP/2 404 
+date: Tue, 09 Nov 2010 14:49:00 GMT
+content-length: 6
+content-type: text/html
+funny-head: yesyes
+server: nghttpx
+via: 1.1 nghttpx
+
+</stdout>
+<errorcode>
+22
+</errorcode>
+</verify>
+</testcase>