test1635 (870B)
1 <testcase> 2 <info> 3 <keywords> 4 HTTP 5 HTTP GET 6 RETRY-AFTER 7 </keywords> 8 </info> 9 10 # 11 # Server-side 12 <reply> 13 <data nocheck="yes"> 14 HTTP/1.1 429 too many requests swsbounce 15 Retry-After: 1 16 Content-Length: 4 17 18 moo 19 </data> 20 <data1 nocheck="yes"> 21 HTTP/1.1 200 OK 22 Content-Length: 4 23 Connection: close 24 25 hey 26 </data1> 27 28 </reply> 29 30 # 31 # Client-side 32 <client> 33 <server> 34 http 35 </server> 36 <name> 37 --retry with a 429 response and Retry-After: and --fail-with-body 38 </name> 39 <command option="no-include"> 40 http://%HOSTIP:%HTTPPORT/%TESTNUMBER --retry 1 --fail-with-body 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 <stdout> 60 moo 61 hey 62 </stdout> 63 </verify> 64 </testcase>