Annotation of embedaddon/curl/tests/data/test1042, revision 1.1.1.1
1.1 misho 1: <testcase>
2: <info>
3: <keywords>
4: HTTP
5: HTTP GET
6: Resume
7: FAILURE
8: </keywords>
9: </info>
10:
11: # Server-side
12: <reply>
13: # Some servers (e.g. Apache 1.2) respond this way to an invalid byte range
14: <data>
15: HTTP/1.1 200 OK
16: Connection: close
17: Content-Length: 100
18: Content-Type: text/plain
19:
20: 012345678
21: 012345678
22: 012345678
23: 012345678
24: 012345678
25: 012345678
26: 012345678
27: 012345678
28: 012345678
29: 012345678
30: </data>
31:
32: # The file data that exists at the start of the test must be included in
33: # the verification.
34: <datacheck>
35: 012345678
36: 012345678
37: 012345678
38: 012345678
39: 012345678
40: 012345678
41: 012345678
42: 012345678
43: 012345678
44: 012345678
45: HTTP/1.1 200 OK
46: Connection: close
47: Content-Length: 100
48: Content-Type: text/plain
49:
50: </datacheck>
51: </reply>
52:
53: # Client-side
54: <client>
55: <server>
56: http
57: </server>
58: <name>
59: HTTP GET beyond end of entirely-downloaded file, no server resume
60: </name>
61: <command>
62: http://%HOSTIP:%HTTPPORT/1042 -C 200
63: </command>
64: <file name="log/curl1042.out">
65: 012345678
66: 012345678
67: 012345678
68: 012345678
69: 012345678
70: 012345678
71: 012345678
72: 012345678
73: 012345678
74: 012345678
75: </file>
76: </client>
77:
78: # Verify data after the test has been "shot"
79: <verify>
80: <errorcode>
81: 33
82: </errorcode>
83: <strip>
84: ^User-Agent:.*
85: </strip>
86: <protocol>
87: GET /1042 HTTP/1.1
88: Host: %HOSTIP:%HTTPPORT
89: Range: bytes=200-
90: Accept: */*
91:
92: </protocol>
93: </verify>
94: </testcase>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>