test197 (1064B)
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 nocheck="yes"> 13 HTTP/1.1 503 BAD swsbounce 14 Date: Tue, 09 Nov 2010 14:49:00 GMT 15 Content-Length: 21 16 17 server not available 18 </data> 19 <data1 nocheck="yes"> 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 </reply> 29 30 # 31 # Client-side 32 <client> 33 <server> 34 http 35 </server> 36 <name> 37 HTTP GET --retry on 503 error with output to stdout 38 </name> 39 <command> 40 http://%HOSTIP:%HTTPPORT/%TESTNUMBER --retry 1000 41 </command> 42 </client> 43 44 # 45 # Verify data after the test has been "shot" 46 <verify> 47 <protocol> 48 GET /%TESTNUMBER HTTP/1.1 49 Host: %HOSTIP:%HTTPPORT 50 User-Agent: curl/%VERSION 51 Accept: */* 52 53 GET /%TESTNUMBER HTTP/1.1 54 Host: %HOSTIP:%HTTPPORT 55 User-Agent: curl/%VERSION 56 Accept: */* 57 58 </protocol> 59 60 <stdout> 61 HTTP/1.1 503 BAD swsbounce 62 Date: Tue, 09 Nov 2010 14:49:00 GMT 63 Content-Length: 21 64 65 server not available 66 HTTP/1.1 200 OK 67 Date: Tue, 09 Nov 2010 14:49:00 GMT 68 Content-Length: 3 69 Connection: close 70 71 ok 72 </stdout> 73 74 </verify> 75 </testcase>