summaryrefslogtreecommitdiffstats
path: root/src/fluent-bit/lib/monkey/qa/post_test02.htt
blob: b323be884676aaf7089cb56ebb341acdd52a8fca (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
################################################################################
# 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