tizen 2.3.1 release
[external/curl.git] / tests / data / test584
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 pipelining
6 multi
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>
14 HTTP/1.1 200 OK\r
15 Server: test-server/fake\r
16 Content-Length: 4\r
17 \r
18 584
19 </data1>
20 <data2>
21 HTTP/1.1 200 OK\r
22 </data2>
23 <data3>
24 Server: test-server/fake\r
25 </data3>
26 <data4>
27 Content-Length: 0\r
28 \r
29 HTTP/1.1 200 OK\r
30 Server: test-server/fake\r
31 Content-Length: 5\r
32 \r
33 585
34
35 HTTP/1.1 200 OK\r
36 Server: test-server/fake\r
37 Content-Length: 4\r
38 \r
39 586
40 </data4>
41 </reply>
42
43 # Client-side
44 <client>
45 <server>
46 http
47 </server>
48 <tool>
49 lib530
50 </tool>
51  <name>
52 HTTP GET using pipelining (nonzero length after zero length)
53  </name>
54  <command>
55 http://%HOSTIP:%HTTPPORT/path/584
56 </command>
57 </client>
58
59 # Verify data after the test has been "shot"
60 <verify>
61 <protocol>
62 GET /path/5840001 HTTP/1.1\r
63 Host: %HOSTIP:%HTTPPORT\r
64 Accept: */*\r
65 \r
66 GET /path/5840002 HTTP/1.1\r
67 Host: %HOSTIP:%HTTPPORT\r
68 Accept: */*\r
69 \r
70 GET /path/5840003 HTTP/1.1\r
71 Host: %HOSTIP:%HTTPPORT\r
72 Accept: */*\r
73 \r
74 GET /path/5840004 HTTP/1.1\r
75 Host: %HOSTIP:%HTTPPORT\r
76 Accept: */*\r
77 \r
78 </protocol>
79 <stdout>
80 HTTP/1.1 200 OK\r
81 Server: test-server/fake\r
82 Content-Length: 4\r
83 \r
84 584
85 HTTP/1.1 200 OK\r
86 Server: test-server/fake\r
87 Content-Length: 0\r
88 \r
89 HTTP/1.1 200 OK\r
90 Server: test-server/fake\r
91 Content-Length: 5\r
92 \r
93 585
94
95 HTTP/1.1 200 OK\r
96 Server: test-server/fake\r
97 Content-Length: 4\r
98 \r
99 586
100 </stdout>
101 </verify>
102 </testcase>