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