summaryrefslogtreecommitdiffstats
path: root/fluent-bit/lib/monkey/qa/ranges_test05.htt
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-03-09 13:19:22 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-03-09 13:19:22 +0000
commitc21c3b0befeb46a51b6bf3758ffa30813bea0ff0 (patch)
tree9754ff1ca740f6346cf8483ec915d4054bc5da2d /fluent-bit/lib/monkey/qa/ranges_test05.htt
parentAdding upstream version 1.43.2. (diff)
downloadnetdata-c21c3b0befeb46a51b6bf3758ffa30813bea0ff0.tar.xz
netdata-c21c3b0befeb46a51b6bf3758ffa30813bea0ff0.zip
Adding upstream version 1.44.3.upstream/1.44.3
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'fluent-bit/lib/monkey/qa/ranges_test05.htt')
-rw-r--r--fluent-bit/lib/monkey/qa/ranges_test05.htt46
1 files changed, 46 insertions, 0 deletions
diff --git a/fluent-bit/lib/monkey/qa/ranges_test05.htt b/fluent-bit/lib/monkey/qa/ranges_test05.htt
new file mode 100644
index 000000000..0e2ab1d83
--- /dev/null
+++ b/fluent-bit/lib/monkey/qa/ranges_test05.htt
@@ -0,0 +1,46 @@
+###############################################################################
+# DESCRIPTION
+# This test request one specific byte using the ranges HTTP feature,
+# the target file is imgs/monkey_logo.png, the byte number 3 contains
+# a value of 0x47 which is the letter 'G'.
+#
+# 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=3
+
+# End offset
+SET OFF_END=3
+
+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 . "HTTP/1.1 206 Partial Content"
+_EXPECT . "Date:"
+_EXPECT . "G"
+_WAIT
+END