• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP POST
6HTTP/3
7HTTPS
8</keywords>
9</info>
10
11#
12# Server-side
13<reply>
14<data nocheck="yes">
15HTTP/1.1 201 OK
16Date: Tue, 09 Nov 2010 14:49:00 GMT
17Connection: close
18Content-Length: 0
19Funny-head: yesyes
20
21</data>
22</reply>
23
24#
25# Client-side
26<client>
27<features>
28debug
29http
30http/3
31</features>
32<server>
33http
34http/3
35</server>
36<name>
37HTTP/3 POST
38</name>
39<setenv>
40</setenv>
41<command>
42-k --http3 "https://%HOSTIP:%HTTP3PORT/%TESTNUMBER" -d "moo"
43</command>
44
45</client>
46
47#
48# Verify data after the test has been "shot"
49<verify>
50<stdout>
51HTTP/3 201
52date: Tue, 09 Nov 2010 14:49:00 GMT
53content-length: 0
54funny-head: yesyes
55via: 1.1 nghttpx
56
57</stdout>
58<protocol nonewline="yes">
59POST https://%HOSTIP:%HTTP3PORT/2501 HTTP/1.1
60Host: %HOSTIP:%HTTP3PORT
61User-Agent: curl/%VERSION
62Accept: */*
63Content-Length: 3
64Content-Type: application/x-www-form-urlencoded
65Via: 3 nghttpx
66
67moo
68</protocol>
69</verify>
70</testcase>
71