2022-12-19 12:31:06 +01:00
|
|
|
<testcase>
|
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
HTTP
|
|
|
|
HTTP POST
|
|
|
|
HTTP/2
|
|
|
|
HTTPS
|
|
|
|
</keywords>
|
|
|
|
</info>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Server-side
|
|
|
|
<reply>
|
|
|
|
<data nocheck="yes">
|
|
|
|
HTTP/1.1 201 OK
|
|
|
|
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
|
|
|
Connection: close
|
|
|
|
Content-Length: 0
|
|
|
|
Funny-head: yesyes
|
|
|
|
|
|
|
|
</data>
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Client-side
|
|
|
|
<client>
|
|
|
|
<features>
|
2024-07-16 00:41:32 +02:00
|
|
|
Debug
|
2024-10-17 11:58:28 +02:00
|
|
|
http/2
|
2022-12-19 12:31:06 +01:00
|
|
|
SSL
|
|
|
|
</features>
|
|
|
|
<server>
|
|
|
|
http/2
|
|
|
|
</server>
|
2023-10-04 11:35:54 +02:00
|
|
|
<name>
|
2024-10-17 11:58:28 +02:00
|
|
|
HTTP/2 POST over HTTPS
|
2023-10-04 11:35:54 +02:00
|
|
|
</name>
|
2022-12-19 12:31:06 +01:00
|
|
|
<setenv>
|
|
|
|
</setenv>
|
2023-10-04 11:35:54 +02:00
|
|
|
<command>
|
2025-03-29 03:41:45 +01:00
|
|
|
--insecure --http2 "https://%HOSTIP:%HTTP2TLSPORT/%TESTNUMBER" -d "moo"
|
2022-12-19 12:31:06 +01:00
|
|
|
</command>
|
|
|
|
|
|
|
|
</client>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
|
|
|
<stdout>
|
|
|
|
HTTP/2 201
|
|
|
|
date: Tue, 09 Nov 2010 14:49:00 GMT
|
|
|
|
content-length: 0
|
|
|
|
funny-head: yesyes
|
|
|
|
server: nghttpx
|
|
|
|
via: 1.1 nghttpx
|
|
|
|
|
|
|
|
</stdout>
|
|
|
|
<protocol nonewline="yes">
|
2024-10-17 11:58:28 +02:00
|
|
|
POST /%TESTNUMBER HTTP/1.1
|
2022-12-19 12:31:06 +01:00
|
|
|
Host: %HOSTIP:%HTTP2TLSPORT
|
|
|
|
User-Agent: curl/%VERSION
|
|
|
|
Accept: */*
|
|
|
|
Content-Length: 3
|
|
|
|
Content-Type: application/x-www-form-urlencoded
|
|
|
|
X-Forwarded-Proto: https
|
|
|
|
Via: 2 nghttpx
|
|
|
|
|
|
|
|
moo
|
|
|
|
</protocol>
|
|
|
|
</verify>
|
|
|
|
</testcase>
|