Fix content type header for error pages
[MonkeyD.git] / qa / post_test02.htt
blob79880e8898ecd9085860c10b0c965001ee144cf4
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 ################################################################################
16 INCLUDE __CONFIG
18 CLIENT
19 _REQ $HOST $PORT 
20 __POST / $HTTPVER
21 __Host: $HOST
22 __Content-Type: text/plain
23 __Connection: close
25 _-someVariable=1234&daemon=monkeyd&SESSION=e1d83283d597ca88f599e34c8ef2e8c3
26 _EXPECT . "HTTP/1.1 411 Length Required"
27 _WAIT
28 END