1 <testcase> 2 <info> 3 <keywords> 4 HTTP 5 HTTP GET 6 retry 7 </keywords> 8 </info> 9 # 10 # Server-side 11 <reply> 12 <data> 13 HTTP/1.1 503 OK swsbounce 14 Date: Tue, 09 Nov 2010 14:49:00 GMT 15 Content-Length: 21 16 17 server not available 18 </data> 19 <data1> 20 HTTP/1.1 200 OK 21 Date: Tue, 09 Nov 2010 14:49:00 GMT 22 Content-Length: 3 23 Connection: close 24 25 ok 26 </data1> 27 28 <datacheck> 29 HTTP/1.1 200 OK 30 Date: Tue, 09 Nov 2010 14:49:00 GMT 31 Content-Length: 3 32 Connection: close 33 34 ok 35 </datacheck> 36 37 </reply> 38 39 # 40 # Client-side 41 <client> 42 <server> 43 http 44 </server> 45 <name> 46 HTTP GET --retry on 503 error with output to file 47 </name> 48 <command> 49 http://%HOSTIP:%HTTPPORT/%TESTNUMBER --retry 1000 50 </command> 51 </client> 52 53 # 54 # Verify data after the test has been "shot" 55 <verify> 56 <protocol> 57 GET /%TESTNUMBER HTTP/1.1 58 Host: %HOSTIP:%HTTPPORT 59 User-Agent: curl/%VERSION 60 Accept: */* 61 62 GET /%TESTNUMBER HTTP/1.1 63 Host: %HOSTIP:%HTTPPORT 64 User-Agent: curl/%VERSION 65 Accept: */* 66 67 </protocol> 68 69 </verify> 70 </testcase> 71