HTTP/1.0 Persistent Connections: Difference between revisions
Jump to navigation
Jump to search
(Created page with "=Internal= * HTTP Persistent Connections =Overview= It is the client that initially requests the connection to be kept alive. The persistent connection is initiated by...") |
No edit summary |
||
Line 4: | Line 4: | ||
=Overview= | =Overview= | ||
<font color=red> | |||
VERIFY | |||
It is the client that initially requests the connection to be kept alive. The persistent connection is initiated by specifying a "Keep-Alive" value for the "Connection" request header: | It is the client that initially requests the connection to be kept alive. The persistent connection is initiated by specifying a "Keep-Alive" value for the "Connection" request header: | ||
Line 22: | Line 26: | ||
Once both the client and the server have agreed on using persistent connections, they will keep the underlying TCP/IP connection open, and subsequent requests from that client will be sent over the persistent connection. | Once both the client and the server have agreed on using persistent connections, they will keep the underlying TCP/IP connection open, and subsequent requests from that client will be sent over the persistent connection. | ||
</font> |
Revision as of 05:33, 8 January 2017
Internal
Overview
VERIFY
It is the client that initially requests the connection to be kept alive. The persistent connection is initiated by specifying a "Keep-Alive" value for the "Connection" request header:
GET ... HTTP/1.0 Host: ... Connection: Keep-Alive
The server may or may not support persistent connections. If the server does support them, it will confirm that by including with the response a "Connection" response header:
200 OK Content-Length: ... Connection: Keep-Alive
Once both the client and the server have agreed on using persistent connections, they will keep the underlying TCP/IP connection open, and subsequent requests from that client will be sent over the persistent connection.