HTTP
HTTP GET
followlocation
--write-out
#
# Server-side
HTTP/1.1 302 OK swsbounce swsclose
Date: Tue, 09 Nov 2010 14:49:00 GMT
Content-Length: 8
Connection: close
Location: ./%TESTNUMBER
monster
HTTP/1.1 200 OK
Date: Tue, 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/%TESTNUMBER -w "%{num_connects}\n" -L
#
# Verify data after the test has been "shot"
GET /%TESTNUMBER HTTP/1.1
Host: %HOSTIP:%HTTPPORT
User-Agent: curl/%VERSION
Accept: */*
GET /%TESTNUMBER HTTP/1.1
Host: %HOSTIP:%HTTPPORT
User-Agent: curl/%VERSION
Accept: */*
HTTP/1.1 302 OK swsbounce swsclose
Date: Tue, 09 Nov 2010 14:49:00 GMT
Content-Length: 8
Connection: close
Location: ./%TESTNUMBER
HTTP/1.1 200 OK
Date: Tue, 09 Nov 2010 14:49:00 GMT
Content-Length: 8
Connection: close
monster
2