1<testcase> 2<info> 3<keywords> 4HTTP 5HTTP GET 6</keywords> 7</info> 8 9# 10# Server-side 11<reply> 12<data> 13HTTP/1.1 301 OK 14Accept-Ranges: bytes 15Content-Length: 0 16Connection: close 17Location: /%TESTNUMBER0002 18 19</data> 20<data2> 21HTTP/1.1 429 too many requests 22Retry-After: 1 23Content-Length: 0 24Connection: close 25 26</data2> 27 28<datacheck> 29HTTP/1.1 301 OK 30Accept-Ranges: bytes 31Content-Length: 0 32Connection: close 33Location: /%TESTNUMBER0002 34 35HTTP/1.1 429 too many requests 36Retry-After: 1 37Content-Length: 0 38Connection: close 39 40HTTP/1.1 301 OK 41Accept-Ranges: bytes 42Content-Length: 0 43Connection: close 44Location: /%TESTNUMBER0002 45 46HTTP/1.1 429 too many requests 47Retry-After: 1 48Content-Length: 0 49Connection: close 50 51</datacheck> 52</reply> 53 54# 55# Client-side 56<client> 57<server> 58http 59</server> 60<name> 61--retry with a 429 response and Retry-After: 62</name> 63<command> 64http://%HOSTIP:%HTTPPORT/%TESTNUMBER -d moo --retry 1 -L 65</command> 66</client> 67 68# 69# Verify data after the test has been "shot" 70<verify> 71<protocol> 72POST /%TESTNUMBER HTTP/1.1 73Host: %HOSTIP:%HTTPPORT 74User-Agent: curl/%VERSION 75Accept: */* 76Content-Length: 3 77Content-Type: application/x-www-form-urlencoded 78 79mooGET /%TESTNUMBER0002 HTTP/1.1 80Host: %HOSTIP:%HTTPPORT 81User-Agent: curl/%VERSION 82Accept: */* 83 84POST /%TESTNUMBER HTTP/1.1 85Host: %HOSTIP:%HTTPPORT 86User-Agent: curl/%VERSION 87Accept: */* 88Content-Length: 3 89Content-Type: application/x-www-form-urlencoded 90 91mooGET /%TESTNUMBER0002 HTTP/1.1 92Host: %HOSTIP:%HTTPPORT 93User-Agent: curl/%VERSION 94Accept: */* 95 96</protocol> 97</verify> 98</testcase> 99