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 www.ietf.org.

HTTP Structure

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

Get Sams Teach Yourself J2EE™ in 21 Days 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.