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