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