050f0515bdf051c1666edbb45244717a66efd50c
[platform/upstream/curl.git] / tests / data / test1510
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 </keywords>
6 </info>
7
8 # Server-side
9 <reply>
10 <data1>
11 HTTP/1.1 200 OK
12 Date: Thu, 09 Nov 2010 14:49:00 GMT
13 Server: test-server/fake
14 Content-Length: 47
15
16 file contents should appear once for each file
17 </data1>
18 <data2>
19 HTTP/1.1 200 OK
20 Date: Thu, 09 Nov 2010 14:49:00 GMT
21 Server: test-server/fake
22 Content-Length: 47
23
24 file contents should appear once for each file
25 </data2>
26 <data3>
27 HTTP/1.1 200 OK
28 Date: Thu, 09 Nov 2010 14:49:00 GMT
29 Server: test-server/fake
30 Content-Length: 47
31
32 file contents should appear once for each file
33 </data3>
34 <data4>
35 HTTP/1.1 200 OK
36 Date: Thu, 09 Nov 2010 14:49:00 GMT
37 Server: test-server/fake
38 Content-Length: 47
39
40 file contents should appear once for each file
41 </data4>
42 </reply>
43
44 # Client-side
45 <client>
46 <server>
47 http
48 </server>
49 <tool>
50 lib1510
51 </tool>
52  <name>
53 HTTP GET connection cache limit (CURLOPT_MAXCONNECTS)
54  </name>
55  <command>
56 http://%HOSTIP:%HTTPPORT/path/1510 %HOSTIP %HTTPPORT
57 </command>
58 </client>
59
60 # Verify data after the test has been "shot"
61 <verify>
62 <protocol>
63 GET /path/15100001 HTTP/1.1\r
64 Host: %HOSTIP:%HTTPPORT\r
65 Accept: */*\r
66 \r
67 GET /path/15100002 HTTP/1.1\r
68 Host: %HOSTIP:%HTTPPORT\r
69 Accept: */*\r
70 \r
71 GET /path/15100003 HTTP/1.1\r
72 Host: %HOSTIP:%HTTPPORT\r
73 Accept: */*\r
74 \r
75 GET /path/15100004 HTTP/1.1\r
76 Host: %HOSTIP:%HTTPPORT\r
77 Accept: */*\r
78 \r
79 </protocol>
80 <strip>
81 ^Host:.*
82 </strip>
83 <file name="log/stderr1510" mode="text">
84 * Connection #0 to host server1.example.com left intact
85 * Connection #1 to host server2.example.com left intact
86 * Connection #2 to host server3.example.com left intact
87 * Closing connection 0
88 * Connection #3 to host server4.example.com left intact
89 </file>
90 <stripfile>
91 $_ = '' if (($_ !~ /left intact/) && ($_ !~ /Closing connection/))
92 </stripfile>
93 </verify>
94 </testcase>