lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 | <testcase> |
2 | <info> | ||||
3 | <keywords> | ||||
4 | HTTP | ||||
5 | HTTP GET | ||||
6 | followlocation | ||||
7 | </keywords> | ||||
8 | </info> | ||||
9 | # Server-side | ||||
10 | <reply> | ||||
11 | <data> | ||||
12 | HTTP/1.1 302 This is a weirdo text message swsclose | ||||
13 | Connection: close | ||||
14 | Location: | ||||
15 | |||||
16 | This server reply is for testing | ||||
17 | </data> | ||||
18 | </reply> | ||||
19 | |||||
20 | # Client-side | ||||
21 | <client> | ||||
22 | <server> | ||||
23 | http | ||||
24 | </server> | ||||
25 | <name> | ||||
26 | HTTP with blank Location: | ||||
27 | </name> | ||||
28 | <command> | ||||
29 | http://%HOSTIP:%HTTPPORT/want/54 -L | ||||
30 | </command> | ||||
31 | </client> | ||||
32 | |||||
33 | # Verify data after the test has been "shot" | ||||
34 | <verify> | ||||
35 | <strip> | ||||
36 | ^User-Agent:.* | ||||
37 | </strip> | ||||
38 | <protocol> | ||||
39 | GET /want/54 HTTP/1.1 | ||||
40 | Host: %HOSTIP:%HTTPPORT | ||||
41 | Accept: */* | ||||
42 | |||||
43 | </protocol> | ||||
44 | </verify> | ||||
45 | </testcase> |