HTTP
HTTP GET
followlocation
--write-out
#
# Server-side
HTTP/1.1 302 OK swsbounce swsclose
Date: Thu, 09 Nov 2010 14:49:00 GMT
Content-Length: 8
Connection: close
Location: ./193
monster
HTTP/1.1 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT
Content-Length: 8
Connection: close
monster
#
# Client-side
http
HTTP GET -w num_connects with redirected fetch (2 connects)
http://%HOSTIP:%HTTPPORT/193 -w "%{num_connects}\n" -L
#
# Verify data after the test has been "shot"
^User-Agent:.*
GET /193 HTTP/1.1
Host: %HOSTIP:%HTTPPORT
Accept: */*
GET /193 HTTP/1.1
Host: %HOSTIP:%HTTPPORT
Accept: */*
HTTP/1.1 302 OK swsbounce swsclose
Date: Thu, 09 Nov 2010 14:49:00 GMT
Content-Length: 8
Connection: close
Location: ./193
HTTP/1.1 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT
Content-Length: 8
Connection: close
monster
2