xref: /curl/tests/data/test197 (revision 3fd80c7b)
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6retry
7</keywords>
8</info>
9#
10# Server-side
11<reply>
12<data nocheck="yes">
13HTTP/1.1 503 BAD swsbounce
14Date: Tue, 09 Nov 2010 14:49:00 GMT
15Content-Length: 21
16
17server not available
18</data>
19<data1 nocheck="yes">
20HTTP/1.1 200 OK
21Date: Tue, 09 Nov 2010 14:49:00 GMT
22Content-Length: 3
23Connection: close
24
25ok
26</data1>
27
28</reply>
29
30#
31# Client-side
32<client>
33<server>
34http
35</server>
36<name>
37HTTP GET --retry on 503 error with output to stdout
38</name>
39<command>
40http://%HOSTIP:%HTTPPORT/%TESTNUMBER --retry 1000
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
60<stdout>
61HTTP/1.1 503 BAD swsbounce
62Date: Tue, 09 Nov 2010 14:49:00 GMT
63Content-Length: 21
64
65server not available
66HTTP/1.1 200 OK
67Date: Tue, 09 Nov 2010 14:49:00 GMT
68Content-Length: 3
69Connection: close
70
71ok
72</stdout>
73
74</verify>
75</testcase>
76