xref: /curl/tests/data/test2501 (revision e61c5eb4)
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/3
34</server>
35<name>
36HTTP/3 POST
37</name>
38<setenv>
39</setenv>
40<command>
41-k --http3 "https://%HOSTIP:%HTTP3PORT/%TESTNUMBER" -d "moo"
42</command>
43
44</client>
45
46#
47# Verify data after the test has been "shot"
48<verify>
49<stdout>
50HTTP/3 201
51date: Tue, 09 Nov 2010 14:49:00 GMT
52content-length: 0
53funny-head: yesyes
54via: 1.1 nghttpx
55
56</stdout>
57<protocol nonewline="yes">
58POST https://%HOSTIP:%HTTP3PORT/2501 HTTP/1.1
59Host: %HOSTIP:%HTTP3PORT
60User-Agent: curl/%VERSION
61Accept: */*
62Content-Length: 3
63Content-Type: application/x-www-form-urlencoded
64Via: 3 nghttpx
65
66moo
67</protocol>
68</verify>
69</testcase>
70