1<testcase> 2<info> 3<keywords> 4HTTP 5HTTP POST 6HTTP Basic auth 7</keywords> 8</info> 9# 10# Server-side 11<reply> 12<data> 13HTTP/1.0 200 OK 14Server: test-server/fake 15Content-Type: text/html 16Content-Length: 0 17 18this is data even though Content-Length is set to zero 19</data> 20<datacheck> 21HTTP/1.0 200 OK 22Server: test-server/fake 23Content-Type: text/html 24Content-Length: 0 25 26</datacheck> 27</reply> 28 29# 30# Client-side 31<client> 32<server> 33http 34</server> 35 <name> 36HTTP POST with auth and contents but with content-length set to 0 37 </name> 38 <command> 39 -d "fooo=mooo&pooo=clue&doo=%20%20%20++++" -u "fake:-user" http://%HOSTIP:%HTTPPORT/3 40</command> 41</client> 42 43# 44# Verify data after the test has been "shot" 45<verify> 46<strip> 47^User-Agent:.* 48</strip> 49<protocol nonewline="yes"> 50POST /3 HTTP/1.1 51Host: %HOSTIP:%HTTPPORT 52Authorization: Basic ZmFrZTotdXNlcg== 53Accept: */* 54Content-Length: 37 55Content-Type: application/x-www-form-urlencoded 56 57fooo=mooo&pooo=clue&doo=%20%20%20++++ 58</protocol> 59</verify> 60</testcase> 61