yuezonghe | 824eb0c | 2024-06-27 02:32:26 -0700 | [diff] [blame] | 1 | <testcase> |
2 | <info> | ||||
3 | <keywords> | ||||
4 | HTTP | ||||
5 | HTTP GET | ||||
6 | HTTP NTLM auth | ||||
7 | connection re-use | ||||
8 | </keywords> | ||||
9 | </info> | ||||
10 | # Server-side | ||||
11 | <reply> | ||||
12 | <servercmd> | ||||
13 | connection-monitor | ||||
14 | </servercmd> | ||||
15 | |||||
16 | <data> | ||||
17 | HTTP/1.1 200 fine! | ||||
18 | Content-Length: 20 | ||||
19 | |||||
20 | Feel free to get it | ||||
21 | </data> | ||||
22 | |||||
23 | <data3> | ||||
24 | HTTP/1.1 200 OK | ||||
25 | Server: Another one/1.0 | ||||
26 | Content-Length: 4 | ||||
27 | |||||
28 | boo | ||||
29 | </data3> | ||||
30 | |||||
31 | <datacheck> | ||||
32 | HTTP/1.1 200 fine! | ||||
33 | Content-Length: 20 | ||||
34 | |||||
35 | Feel free to get it | ||||
36 | </datacheck> | ||||
37 | </reply> | ||||
38 | |||||
39 | # Client-side | ||||
40 | <client> | ||||
41 | <server> | ||||
42 | http | ||||
43 | </server> | ||||
44 | <name> | ||||
45 | HTTP with --anyauth (but no auth!) and connection re-use | ||||
46 | </name> | ||||
47 | <command> | ||||
48 | http://%HOSTIP:%HTTPPORT/1419 --anyauth http://%HOSTIP:%HTTPPORT/14190003 | ||||
49 | </command> | ||||
50 | </client> | ||||
51 | |||||
52 | # Verify data after the test has been "shot" | ||||
53 | <verify> | ||||
54 | <strip> | ||||
55 | ^User-Agent:.* | ||||
56 | </strip> | ||||
57 | <protocol> | ||||
58 | GET /1419 HTTP/1.1 | ||||
59 | Host: %HOSTIP:%HTTPPORT | ||||
60 | Accept: */* | ||||
61 | |||||
62 | GET /14190003 HTTP/1.1 | ||||
63 | Host: %HOSTIP:%HTTPPORT | ||||
64 | Accept: */* | ||||
65 | |||||
66 | [DISCONNECT] | ||||
67 | </protocol> | ||||
68 | </verify> | ||||
69 | </testcase> |