xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame^] | 1 | <testcase> |
2 | <info> | ||||
3 | <keywords> | ||||
4 | HTTP | ||||
5 | HTTP/0.9 | ||||
6 | </keywords> | ||||
7 | </info> | ||||
8 | |||||
9 | # | ||||
10 | # Server-side | ||||
11 | <reply> | ||||
12 | <data> | ||||
13 | -foo- swsclose | ||||
14 | </data> | ||||
15 | <datacheck> | ||||
16 | </datacheck> | ||||
17 | </reply> | ||||
18 | |||||
19 | # | ||||
20 | # Client-side | ||||
21 | <client> | ||||
22 | <server> | ||||
23 | http | ||||
24 | </server> | ||||
25 | <name> | ||||
26 | HTTP/0.9 GET response denied | ||||
27 | </name> | ||||
28 | <command> | ||||
29 | http://%HOSTIP:%HTTPPORT/%TESTNUMBER --no-http0.9 | ||||
30 | </command> | ||||
31 | </client> | ||||
32 | |||||
33 | # | ||||
34 | # Verify data after the test has been "shot" | ||||
35 | <verify> | ||||
36 | <protocol> | ||||
37 | GET /%TESTNUMBER HTTP/1.1 | ||||
38 | Host: %HOSTIP:%HTTPPORT | ||||
39 | User-Agent: curl/%VERSION | ||||
40 | Accept: */* | ||||
41 | |||||
42 | </protocol> | ||||
43 | # unsupported protocol | ||||
44 | <errorcode> | ||||
45 | 1 | ||||
46 | </errorcode> | ||||
47 | </verify> | ||||
48 | </testcase> |