HTTP Persistent Connections

Moderator: Praktikum: Internet

fernando
Erstie
Erstie
Beiträge: 17
Registriert: 6. Okt 2006 10:10

HTTP Persistent Connections

Beitrag von fernando » 23. Nov 2007 11:40

Hi,

Last class there was an interesting question regarding the interaction between a server and an application -browser for instance-, and how do they decide to close the connection.

The procedure is rather well defined, and is documented in the HTTP RFC, in the following section: http://www.w3.org/Protocols/rfc2616/rfc ... .html#sec8

A second question was: How do I know if there's body comming after the header. That's also defined in the RFC: "The presence of a message-body in a request is signaled by the inclusion of a Content-Length or Transfer-Encoding header field in the request's message-headers"

Finally, how do we know whether we have received the whole content, it is also defined (content-length headers and Transfer-Encoding headers): http://www.w3.org/Protocols/rfc2616/rfc ... .html#sec4


Best regards,
Fernando

Zurück zu „Praktikum: Internet“