HTTP Details

The HTTP 1.1 protocol as specified by RFC 2616 includes information about the following:

  • Overall protocol semantics

  • Supported methods (e.g., GET and POST)

  • Connection management (i.e., persistent connections)

  • Caching support

  • Security

  • Request/reply status codes (e.g., HTTP 200), header fields, protocol parameters, and so on

  • Content negotiation and other miscellaneous topics

In our discussion, we'll be primarily concerned with the HTTP aspects that have the most impact in terms of scalability and performance for Web applications—the request methods (GET and POST), caching, and connection management. But first we'll start out with a review of how the protocol works.

Semantics

As we saw earlier, when HTTP is deployed on TCP/IP its requests ...

Get Building Scalable and High-Performance Java™ Web Applications Using J2EE™ Technology now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.