1<testcase> 2<info> 3<keywords> 4HTTP 5multi 6verbose logs 7</keywords> 8</info> 9 10# Server-side 11<reply> 12<data1> 13HTTP/1.1 200 OK 14Date: Thu, 09 Nov 2010 14:49:00 GMT 15Server: test-server/fake 16Content-Length: 47 17 18file contents should appear once for each file 19</data1> 20<data2> 21HTTP/1.1 200 OK 22Date: Thu, 09 Nov 2010 14:49:00 GMT 23Server: test-server/fake 24Content-Length: 47 25 26file contents should appear once for each file 27</data2> 28<data3> 29HTTP/1.1 200 OK 30Date: Thu, 09 Nov 2010 14:49:00 GMT 31Server: test-server/fake 32Content-Length: 47 33 34file contents should appear once for each file 35</data3> 36<data4> 37HTTP/1.1 200 OK 38Date: Thu, 09 Nov 2010 14:49:00 GMT 39Server: test-server/fake 40Content-Length: 47 41 42file contents should appear once for each file 43</data4> 44</reply> 45 46# Client-side 47<client> 48<server> 49http 50</server> 51<tool> 52lib1506 53</tool> 54 <name> 55HTTP GET connection cache limit (CURLMOPT_MAXCONNECTS) 56 </name> 57 <command> 58http://%HOSTIP:%HTTPPORT/path/1506 %HOSTIP %HTTPPORT 59</command> 60</client> 61 62# Verify data after the test has been "shot" 63<verify> 64<protocol> 65GET /path/15060001 HTTP/1.1 66Host: %HOSTIP:%HTTPPORT 67Accept: */* 68 69GET /path/15060002 HTTP/1.1 70Host: %HOSTIP:%HTTPPORT 71Accept: */* 72 73GET /path/15060003 HTTP/1.1 74Host: %HOSTIP:%HTTPPORT 75Accept: */* 76 77GET /path/15060004 HTTP/1.1 78Host: %HOSTIP:%HTTPPORT 79Accept: */* 80 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* Closing connection 92* Closing connection 93* Closing connection 94</file> 95<stripfile> 96$_ = '' if (($_ !~ /left intact/) && ($_ !~ /Closing connection/)) 97s/^(\* Closing connection) [123](?=\r?\n)/$1/ 98</stripfile> 99</verify> 100</testcase> 101