HTTP
HTTP GET
#
# Server-side
HTTP/1.1 429 too many requests swsbounce
Retry-After: 1
Content-Length: 4
moo
HTTP/1.1 200 OK
Content-Length: 4
Connection: close
hey
HTTP/1.1 429 too many requests swsbounce
Retry-After: 1
Content-Length: 4
HTTP/1.1 200 OK
Content-Length: 4
Connection: close
hey
#
# Client-side
http
--retry with a 429 response and Retry-After: and --fail
http://%HOSTIP:%HTTPPORT/%TESTNUMBER --retry 1 --fail
#
# 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: */*