1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6</keywords>
7</info>
8#
9# Server-side
10<reply>
11<data nocheck="yes">
12HTTP/1.1 503 OK swsbounce
13Date: Thu, 09 Nov 2010 14:49:00 GMT
14Content-Length: 21
15
16server not available
17</data>
18<data1 nocheck="yes">
19HTTP/1.1 200 OK
20Date: Thu, 09 Nov 2010 14:49:00 GMT
21Content-Length: 3
22Connection: close
23
24ok
25</data1>
26
27</reply>
28
29#
30# Client-side
31<client>
32<server>
33http
34</server>
35 <name>
36HTTP GET --retry on 503 error with output to stdout
37 </name>
38 <command>
39http://%HOSTIP:%HTTPPORT/197 --retry 1000
40</command>
41</client>
42
43#
44# Verify data after the test has been "shot"
45<verify>
46<strip>
47^User-Agent:.*
48</strip>
49<protocol>
50GET /197 HTTP/1.1
51Host: %HOSTIP:%HTTPPORT
52Accept: */*
53
54GET /197 HTTP/1.1
55Host: %HOSTIP:%HTTPPORT
56Accept: */*
57
58</protocol>
59
60<stdout>
61HTTP/1.1 503 OK swsbounce
62Date: Thu, 09 Nov 2010 14:49:00 GMT
63Content-Length: 21
64
65server not available
66HTTP/1.1 200 OK
67Date: Thu, 09 Nov 2010 14:49:00 GMT
68Content-Length: 3
69Connection: close
70
71ok
72</stdout>
73
74</verify>
75</testcase>
76