A minor "syntax error" in numerous test files corrected
[platform/upstream/curl.git] / tests / data / test189
1 # Server-side
2 <reply>
3 <data>
4 HTTP/1.1 301 OK swsbounce
5 Location: /189
6 Content-Length: 2
7
8 OK
9 </data>
10 <data1>
11 HTTP/1.1 200 OK 
12 Connection: close
13 Content-Length: 15
14
15 Actual content
16 </data1>
17
18 <datacheck>
19 HTTP/1.1 301 OK swsbounce
20 Location: /189
21 Content-Length: 2
22
23 HTTP/1.1 200 OK 
24 Connection: close
25 Content-Length: 15
26
27 </datacheck>
28
29 </reply>
30
31 # Client-side
32 <client>
33 <server>
34 http
35 </server>
36  <name>
37 HTTP GET with resume and redirect (to a page that doesn't resume)
38  </name>
39  <command>
40 http://%HOSTIP:%HTTPPORT/189 -C 50 -L
41 </command>
42 </client>
43
44 # Verify data after the test has been "shot"
45 <verify>
46 <strip>
47 ^User-Agent:.*
48 </strip>
49 <protocol>
50 GET /189 HTTP/1.1\r
51 Range: bytes=50-\r
52 User-Agent: curl/7.6 (sparc-sun-solaris2.7) libcurl 7.6-pre4 (SSL 0.9.6) (krb4 enabled)\r
53 Host: 127.0.0.1:%HTTPPORT\r
54 Pragma: no-cache\r
55 Accept: */*\r
56 \r
57 GET /189 HTTP/1.1\r
58 Range: bytes=50-\r
59 User-Agent: curl/7.12.2-CVS (i686-pc-linux-gnu) libcurl/7.12.2-CVS OpenSSL/0.9.7d zlib/1.2.1.2 libidn/0.5.2\r
60 Host: 127.0.0.1:%HTTPPORT\r
61 Pragma: no-cache\r
62 Accept: */*\r
63 \r
64 </protocol>
65 # 33 is CURLE_HTTP_RANGE_ERROR
66 <errorcode>
67 33
68 </errorcode>
69 </verify>