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/268
#
# Verify data after the test has been "shot"
^User-Agent:.*
POST /268 HTTP/1.1
Host: 127.0.0.1:%HTTPPORT
Accept: */*
Content-Length: 0
Content-Type: application/x-www-form-urlencoded