Git init
[external/curl.git] / tests / data / test198
1 <testcase>
2 #
3 # Server-side
4 <reply>
5 <data>
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>
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 <datacheck>
22 HTTP/1.1 200 OK
23 Date: Thu, 09 Nov 2010 14:49:00 GMT
24 Content-Length: 3
25 Connection: close
26
27 ok
28 </datacheck>
29
30 </reply>
31
32 #
33 # Client-side
34 <client>
35 <server>
36 http
37 </server>
38  <name>
39 HTTP GET --retry on 503 error with output to file
40  </name>
41  <command>
42 http://%HOSTIP:%HTTPPORT/198 --retry 1000
43 </command>
44 </client>
45
46 #
47 # Verify data after the test has been "shot"
48 <verify>
49 <strip>
50 ^User-Agent:.*
51 </strip>
52 <protocol>
53 GET /198 HTTP/1.1\r
54 Host: %HOSTIP:%HTTPPORT\r
55 Accept: */*\r
56 \r
57 GET /198 HTTP/1.1\r
58 Host: %HOSTIP:%HTTPPORT\r
59 Accept: */*\r
60 \r
61 </protocol>
62
63 </verify>
64 </testcase>