summaryrefslogtreecommitdiffstats
path: root/fluent-bit/lib/monkey/qa/post_test02.htt
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 02:57:58 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 02:57:58 +0000
commitbe1c7e50e1e8809ea56f2c9d472eccd8ffd73a97 (patch)
tree9754ff1ca740f6346cf8483ec915d4054bc5da2d /fluent-bit/lib/monkey/qa/post_test02.htt
parentInitial commit. (diff)
downloadnetdata-be1c7e50e1e8809ea56f2c9d472eccd8ffd73a97.tar.xz
netdata-be1c7e50e1e8809ea56f2c9d472eccd8ffd73a97.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/post_test02.htt')
-rw-r--r--fluent-bit/lib/monkey/qa/post_test02.htt33
1 files changed, 33 insertions, 0 deletions
diff --git a/fluent-bit/lib/monkey/qa/post_test02.htt b/fluent-bit/lib/monkey/qa/post_test02.htt
new file mode 100644
index 00000000..b323be88
--- /dev/null
+++ b/fluent-bit/lib/monkey/qa/post_test02.htt
@@ -0,0 +1,33 @@
+################################################################################
+# DESCRIPTION
+# An incomplete POST request.
+#
+# AUTHOR
+# Carlos Ghan <charlie.brown.uy@gmail.com>
+#
+# DATE
+# June 29 2009
+#
+# COMMENTS
+# A POST request with missing Content-Length.(Should return "Length Required")
+################################################################################
+
+# Why post_test02.htt sometimes fail ?
+# ------------------------------------
+# it fails because the httest tool catch the close connection from Monkey before it
+# finish to send the whole request, Monkey will not continue working in a request
+# which will not work properly, bad monkey >:D
+
+INCLUDE __CONFIG
+
+CLIENT
+_REQ $HOST $PORT
+__POST / $HTTPVER
+__Host: $HOST
+__Content-Type: text/plain
+__Connection: close
+__
+_-someVariable=1234&daemon=monkeyd&SESSION=e1d83283d597ca88f599e34c8ef2e8c3
+_EXPECT . "HTTP/1.1 411 Length Required"
+_WAIT 0
+END