HTTP
HTTP POST
HTTP Basic auth
#
# Server-side
HTTP/1.0 200 OK
Server: test-server/fake
Content-Type: text/html
Content-Length: 0
this is data even though Content-Length is set to zero
HTTP/1.0 200 OK
Server: test-server/fake
Content-Type: text/html
Content-Length: 0
#
# Client-side
http
HTTP POST with auth and contents but with content-length set to 0
-d "fooo=mooo&pooo=clue&doo=%20%20%20++++" -u "fake:-user" http://%HOSTIP:%HTTPPORT/3
#
# Verify data after the test has been "shot"
^User-Agent:.*
POST /3 HTTP/1.1
Authorization: Basic ZmFrZTotdXNlcg==
Host: %HOSTIP:%HTTPPORT
Accept: */*
Content-Length: 37
Content-Type: application/x-www-form-urlencoded
fooo=mooo&pooo=clue&doo=%20%20%20++++