1) Start the server
2) Execute two successive requests
curl -v -u user:user http://localhost:11222/rest/v2/server --next -u user:user http://localhost:11222/rest/v2/server
3) Check the headers
The first response contains the keep-alive header, which prompts cURL to reuse the connection
< HTTP/1.1 200 OK
< Content-Type: application/json
< content-length: 46
< connection: keep-alive
But when attempting the reuse, it fails because the connection was closed:
* Connection died, retrying a fresh connect
* Closing connection 0
* Issue another request to this URL: 'http://localhost:11222/rest/v2/server