Introduction to HTTP

Before looking at Java servlets in more detail, you will need an understanding of the Web protocol, HTTP (Hypertext Transfer Protocol), and how a browser interprets HTML (Hypertext Markup Language) to display a Web page. If you are comfortable with these topics, feel free to skip to the next section, titled “The Servlet Environment.”

HTTP is a protocol standard specified by the Internet Engineering Task force, and its current version is available as RFC 2616 available from http://www.ietf.org/rfc.html.

HTTP Request Structure

HTTP is a stateless protocol, and this has the advantage that the server does not have the overhead of tracking client connections. This was completely satisfactory when the primary use of the Web was ...

Get Sams Teach Yourself J2EE™ in 21 Days, Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.