Imported Upstream version 7.44.0
[platform/upstream/curl.git] / tests / data / test99
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 Resume
7 Largefile
8 FAILURE
9 </keywords>
10 </info>
11 #
12 # Server-side
13 <reply>
14 <data>
15 HTTP/1.1 404 Nah
16 Date: Thu, 09 Nov 2010 14:49:00 GMT
17 Connection: close
18 Content-Length: 13
19 Funny-head: yesyes
20
21 0123456789123
22 </data>
23
24 <datacheck>
25 HTTP/1.1 404 Nah
26 Date: Thu, 09 Nov 2010 14:49:00 GMT
27 Connection: close
28 Content-Length: 13
29 Funny-head: yesyes
30
31 </datacheck>
32 </reply>
33
34 #
35 # Client-side
36 <client>
37 <features>
38 large_file
39 </features>
40 <server>
41 http
42 </server>
43  <name>
44 HTTP GET with large-file resume point and failed resume
45  </name>
46  <command>
47 http://%HOSTIP:%HTTPPORT/99 -C 9999999999
48 </command>
49 </client>
50
51 #
52 # Verify data after the test has been "shot"
53 <verify>
54 # 33 is CURLE_RANGE_ERROR
55 <errorcode>
56 33
57 </errorcode>
58 <strip>
59 ^User-Agent:.*
60 </strip>
61 <protocol>
62 GET /99 HTTP/1.1\r
63 Host: %HOSTIP:%HTTPPORT\r
64 Range: bytes=9999999999-\r
65 Accept: */*\r
66 \r
67 </protocol>
68 </verify>
69 </testcase>