Fix thread_key plugin connector
[MonkeyD.git] / qa / post_test02.htt
blob0927fa3d2639bb691a9fa7cf8cecc174cebc3a0e
1 ################################################################################
2 # DESCRIPTION
3 #       An incomplete POST request.
5 # AUTHOR
6 #       Carlos Ghan     <charlie.brown.uy@gmail.com>
8 # DATE
9 #       June 29 2009
11 # COMMENTS
12 #       A POST request with missing Content-Length.(Should return "Length Required")
13 ################################################################################
15 # Why post_test02.htt sometimes fail ?
16 # ------------------------------------
17 # Sometimes this test fails, because httest send the whole data by parts, so when
18 # Monkey read the first part including headers and a part of body, if a 
19 # content-length header doesn't exists, Monkey doesn't wait for the whole request
20 # and send the error 411, sometimes httest cannot handle this information as it is 
21 # in writting mode.
23 INCLUDE __CONFIG
25 CLIENT
26 _REQ $HOST $PORT 
27 __POST / $HTTPVER
28 __Host: $HOST
29 __Content-Type: text/plain
30 __Connection: close
32 _-someVariable=1234&daemon=monkeyd&SESSION=e1d83283d597ca88f599e34c8ef2e8c3
33 _EXPECT . "HTTP/1.1 411 Length Required"
34 _WAIT
35 END