diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 02:57:58 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 02:57:58 +0000 |
commit | be1c7e50e1e8809ea56f2c9d472eccd8ffd73a97 (patch) | |
tree | 9754ff1ca740f6346cf8483ec915d4054bc5da2d /fluent-bit/lib/monkey/qa/ranges_test01.htt | |
parent | Initial commit. (diff) | |
download | netdata-upstream.tar.xz netdata-upstream.zip |
Adding upstream version 1.44.3.upstream/1.44.3upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'fluent-bit/lib/monkey/qa/ranges_test01.htt')
-rw-r--r-- | fluent-bit/lib/monkey/qa/ranges_test01.htt | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/fluent-bit/lib/monkey/qa/ranges_test01.htt b/fluent-bit/lib/monkey/qa/ranges_test01.htt new file mode 100644 index 00000000..cb5b577a --- /dev/null +++ b/fluent-bit/lib/monkey/qa/ranges_test01.htt @@ -0,0 +1,37 @@ +############################################################################### +# DESCRIPTION +# Test partial content request. Range type: 0- (from offset 0 to end) +# +# AUTHOR +# Carlos Ghan <charlie.brown.uy@gmail.com> +# +# DATE +# February 02 2010 +# +# COMMENTS +# RFC 2616 Section 14.35 +############################################################################### + + +INCLUDE __CONFIG +INCLUDE __MACROS + +CLIENT +_CALL INIT +_CALL TESTDOC_GETSIZE + +# Last offset = document_length - 1 +_OP $TEST_DOC_LEN SUB 1 TEST_DOC_LAST + +_REQ $HOST $PORT +__GET /$TEST_DOC $HTTPVER +__Host: $HOST +__Range: bytes=0- +__Connection: close +__ +_EXPECT . "HTTP/1.1 206 Partial Content" +_EXPECT . "Date:" +_EXPECT . "Content-Range: bytes 0-${TEST_DOC_LAST}/${TEST_DOC_LEN}" +_EXPECT . "Content-Length: $TEST_DOC_LEN" +_WAIT +END |