mirror of
https://github.com/curl/curl.git
synced 2026-07-31 12:38:04 +03:00
test2406: verify -f with HTTP/2
This commit is contained in:
parent
5c59f91427
commit
d54b0adbad
2 changed files with 67 additions and 1 deletions
|
|
@ -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
66
tests/data/test2406
Normal 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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue