test160 (1126B)
1 <testcase> 2 <info> 3 <keywords> 4 HTTP 5 HTTP GET 6 DELAY 7 </keywords> 8 </info> 9 10 # Server-side 11 <reply> 12 <data nocheck="yes"> 13 HTTP/1.1 200 OK swsclose 14 Date: Tue, 09 Nov 2010 14:49:00 GMT 15 Content-Length: 9 16 17 surprise 18 </data> 19 <data1> 20 HTTP/1.1 200 OK swsclose 21 Date: Tue, 09 Nov 2010 14:49:00 GMT 22 Connection: close 23 24 surprise2 25 </data1> 26 27 <postcmd> 28 wait 1 29 </postcmd> 30 </reply> 31 32 # Client-side 33 <client> 34 <server> 35 http 36 </server> 37 <name> 38 HTTP with delayed close, conn reuse, connection reset and retry 39 </name> 40 <command> 41 http://%HOSTIP:%HTTPPORT/want/%TESTNUMBER http://%HOSTIP:%HTTPPORT/wantmore/%TESTNUMBER0001 42 </command> 43 </client> 44 45 # Verify data after the test has been "shot" 46 <verify> 47 <stdout> 48 HTTP/1.1 200 OK swsclose 49 Date: Tue, 09 Nov 2010 14:49:00 GMT 50 Content-Length: 9 51 52 surprise 53 HTTP/1.1 200 OK swsclose 54 Date: Tue, 09 Nov 2010 14:49:00 GMT 55 Connection: close 56 57 surprise2 58 </stdout> 59 60 <protocol> 61 GET /want/%TESTNUMBER HTTP/1.1 62 Host: %HOSTIP:%HTTPPORT 63 User-Agent: curl/%VERSION 64 Accept: */* 65 66 GET /wantmore/%TESTNUMBER0001 HTTP/1.1 67 Host: %HOSTIP:%HTTPPORT 68 User-Agent: curl/%VERSION 69 Accept: */* 70 71 </protocol> 72 </verify> 73 </testcase>