25.02.2013 Views

TCP/IP Tutorial and Technical Overview - IBM Redbooks

TCP/IP Tutorial and Technical Overview - IBM Redbooks

TCP/IP Tutorial and Technical Overview - IBM Redbooks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

– Upgrade<br />

– Via<br />

Request<br />

A request message from a client to a server includes the method to be applied to<br />

the resource, the identifier of the source, <strong>and</strong> the protocol version in use. A<br />

request message field is as follows:<br />

Request = Request-Line<br />

*( general-header | request-header | entity-header )<br />

CRLF<br />

[ message-body ]<br />

Refer to RFC 2616 for detailed information.<br />

Response<br />

An HTTP server returns a response after evaluating the client request. A<br />

response message field is as follows:<br />

Request = Request-Line<br />

*( general-header | request-header | entity-header )<br />

CRLF<br />

[ message-body ]<br />

Refer to RFC 2616 for detailed information.<br />

Entity<br />

Either the client or server might send Entity in the request message or the<br />

response message, unless otherwise indicated. Entity consists of the following:<br />

► Entity header fields<br />

► Entity body<br />

Persistent connections<br />

A significant difference between HTTP 1.1 <strong>and</strong> earlier versions of HTTP is that<br />

HTTP 1.1 uses a persistent connection as the default. In earlier version<br />

implementations, a separate <strong>TCP</strong> connection is established for each URL <strong>and</strong><br />

clients have to make multiple requests for images <strong>and</strong> associated data on the<br />

same URL. This approach was causing congestion <strong>and</strong> performance problems in<br />

the network. Persistent HTTP connections have a number of advantages, most<br />

notably the reduction in <strong>TCP</strong> connections <strong>and</strong> subsequently, of waiting times.<br />

610 <strong>TCP</strong>/<strong>IP</strong> <strong>Tutorial</strong> <strong>and</strong> <strong>Technical</strong> <strong>Overview</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!