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