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