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