HTTP
HTTP GET
#
# disable data check since it gets sent to stdout and is verified there
HTTP/1.1 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT
Content-Length: 4
Connection: close
Content-Type: text/html
hej
#
# Client-side
http
HTTP GET -w remote_ip and -w remote_port
http://%HOSTIP:%HTTPPORT/1223 -w 'IP %{remote_ip} and PORT %{remote_port}\n'
#
# Verify data after the test has been "shot"
GET /1223 HTTP/1.1
Host: %HOSTIP:%HTTPPORT
User-Agent: curl/%VERSION
Accept: */*
HTTP/1.1 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT
Content-Length: 4
Connection: close
Content-Type: text/html
hej
IP %HOSTIP and PORT %HTTPPORT