summaryrefslogtreecommitdiffstats
path: root/fluent-bit/lib/monkey/qa/ranges_test04.htt
blob: 8bb26d0737d059ef646183f7b07f991470707e67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
###############################################################################
# DESCRIPTION
#	Test partial content request. Range type is equal to the file size.
#       We expect this test to fail from server side as the file size is an
#       invalid offset, ranges starts from byte zero.
#
# AUTHOR
#	Eduardo Silva <edsiper@gmail.com>
#
# DATE
#	Jun 19 2013
#
# COMMENTS
#       RFC 2616 Section 10.4.17
###############################################################################


INCLUDE __CONFIG
INCLUDE __MACROS

# Start offset
SET OFF_START=79718

# End offset
SET OFF_END=79718

CLIENT
_CALL INIT
_CALL TESTDOC_GETSIZE

_REQ $HOST $PORT
__GET /img/mk_logo.png $HTTPVER
__Host: $HOST
__Range: bytes=${OFF_START}-${OFF_END}
__Connection: close
__

# Content length = end_offset - start_offset + 1
_OP $OFF_END SUB $OFF_START CLEN
_OP $CLEN ADD 1 CLEN

_EXPECT . "416 Requested Range Not Satisfiable"
_EXPECT . "Date:"
_WAIT
END