test2406: verify -f with HTTP/2

This commit is contained in:
Daniel Stenberg 2024-04-19 08:55:10 +02:00
parent 5c59f91427
commit d54b0adbad
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
2 changed files with 67 additions and 1 deletions

View 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 \
\

66
tests/data/test2406 Normal file
View file

@ -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
Date: Tue, 09 Nov 2010 14:49:00 GMT
Content-Length: 6
Connection: close
Content-Type: text/html
Funny-head: yesyes
-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>