1<testcase>
2<info>
3<keywords>
4HTTP
5pipelining
6multi
7</keywords>
8</info>
9
10# Server-side
11# Silly division of the first request is solely to appease the server which expects n_data_items == n_requests
12<reply>
13<data1>
14HTTP/1.1 200 OK
15Server: test-server/fake
16Content-Length: 4
17
18584
19</data1>
20<data2>
21HTTP/1.1 200 OK
22</data2>
23<data3>
24Server: test-server/fake
25</data3>
26<data4>
27Content-Length: 0
28
29HTTP/1.1 200 OK
30Server: test-server/fake
31Content-Length: 5
32
33585
34
35HTTP/1.1 200 OK
36Server: test-server/fake
37Content-Length: 4
38
39586
40</data4>
41</reply>
42
43# Client-side
44<client>
45<server>
46http
47</server>
48<tool>
49lib530
50</tool>
51 <name>
52HTTP GET using pipelining (nonzero length after zero length)
53 </name>
54 <command>
55http://%HOSTIP:%HTTPPORT/path/584
56</command>
57</client>
58
59# Verify data after the test has been "shot"
60<verify>
61<protocol>
62GET /path/5840001 HTTP/1.1
63Host: %HOSTIP:%HTTPPORT
64Accept: */*
65
66GET /path/5840002 HTTP/1.1
67Host: %HOSTIP:%HTTPPORT
68Accept: */*
69
70GET /path/5840003 HTTP/1.1
71Host: %HOSTIP:%HTTPPORT
72Accept: */*
73
74GET /path/5840004 HTTP/1.1
75Host: %HOSTIP:%HTTPPORT
76Accept: */*
77
78</protocol>
79<stdout>
80HTTP/1.1 200 OK
81Server: test-server/fake
82Content-Length: 4
83
84584
85HTTP/1.1 200 OK
86Server: test-server/fake
87Content-Length: 0
88
89HTTP/1.1 200 OK
90Server: test-server/fake
91Content-Length: 5
92
93585
94
95HTTP/1.1 200 OK
96Server: test-server/fake
97Content-Length: 4
98
99586
100</stdout>
101</verify>
102</testcase>
103