xref: /curl/tests/data/test1634 (revision 48cbd8f7)
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 429 too many requests swsbounce
15Retry-After: 1
16Content-Length: 4
17
18moo
19</data>
20<data1>
21HTTP/1.1 200 OK
22Content-Length: 4
23Connection: close
24
25hey
26</data1>
27
28<datacheck>
29HTTP/1.1 429 too many requests swsbounce
30Retry-After: 1
31Content-Length: 4
32
33HTTP/1.1 200 OK
34Content-Length: 4
35Connection: close
36
37hey
38</datacheck>
39</reply>
40
41#
42# Client-side
43<client>
44<server>
45http
46</server>
47<name>
48--retry with a 429 response and Retry-After: and --fail
49</name>
50<command>
51http://%HOSTIP:%HTTPPORT/%TESTNUMBER --retry 1  --fail
52</command>
53</client>
54
55#
56# Verify data after the test has been "shot"
57<verify>
58<protocol>
59GET /%TESTNUMBER HTTP/1.1
60Host: %HOSTIP:%HTTPPORT
61User-Agent: curl/%VERSION
62Accept: */*
63
64GET /%TESTNUMBER HTTP/1.1
65Host: %HOSTIP:%HTTPPORT
66User-Agent: curl/%VERSION
67Accept: */*
68
69</protocol>
70</verify>
71</testcase>
72