connection-header tagged requests and articles

Categorized request examples and articles tagged with [connection-header] keyword
Curl Command With Close Connection Header
This example shows how to send a Curl request to the server and indicate that the client does not want to keep the connection open by sending the Connection: close header. The header is passed with the curl -H command-line option.

Curl Command With Keep-Alive Connection Header
An example of a Curl request with connection and keep-alive headers. The Connection header is passed with the -H "Connection: keep-alive" command-line parameter. The Keep-Alive header is passed with the -H "Keep-Alive: timeout=5, max=100" command-line parameter.

Keep-Alive Connection Example
This page shows how to establish a persistent connection with the server using the Connection and Keep-Alive headers. The Connection: keep-alive request header indicates that the client needs a persistent connection. The Keep-Alive: timeout=5, max=100 sets the timeout value.