Imported Upstream version 7.59.0
[platform/upstream/curl.git] / tests / data / test197
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 </keywords>
7 </info>
8 #
9 # Server-side
10 <reply>
11 <data nocheck="yes">
12 HTTP/1.1 503 OK swsbounce
13 Date: Thu, 09 Nov 2010 14:49:00 GMT
14 Content-Length: 21
15
16 server not available
17 </data>
18 <data1 nocheck="yes">
19 HTTP/1.1 200 OK
20 Date: Thu, 09 Nov 2010 14:49:00 GMT
21 Content-Length: 3
22 Connection: close
23
24 ok
25 </data1>
26
27 </reply>
28
29 #
30 # Client-side
31 <client>
32 <server>
33 http
34 </server>
35  <name>
36 HTTP GET --retry on 503 error with output to stdout
37  </name>
38  <command>
39 http://%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>
50 GET /197 HTTP/1.1
51 Host: %HOSTIP:%HTTPPORT
52 Accept: */*
53
54 GET /197 HTTP/1.1
55 Host: %HOSTIP:%HTTPPORT
56 Accept: */*
57
58 </protocol>
59
60 <stdout>
61 HTTP/1.1 503 OK swsbounce
62 Date: Thu, 09 Nov 2010 14:49:00 GMT
63 Content-Length: 21
64
65 server not available
66 HTTP/1.1 200 OK
67 Date: Thu, 09 Nov 2010 14:49:00 GMT
68 Content-Length: 3
69 Connection: close
70
71 ok
72 </stdout>
73
74 </verify>
75 </testcase>