HTTP
HTTP POST
#
# 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 a non-existing file
-d @nonesuchfile http://%HOSTIP:%HTTPPORT/%TESTNUMBER
#
# Verify data after the test has been "shot"
POST /%TESTNUMBER HTTP/1.1
Host: %HOSTIP:%HTTPPORT
User-Agent: curl/%VERSION
Accept: */*
Content-Length: 0
Content-Type: application/x-www-form-urlencoded