Summary
In this chapter, we examined the various Java approaches that can be used to develop HTTP client/server applications. Communication using HTTP is a common practice. Understanding how Java supports this process is a valuable skill to possess.
We started with an overview of HTTP messages. We examined the format of the initial request and response lines. Headers lines were also examined, which are used to convey information about the message. An optional message body may appear in an HTTP message. This is more common in a response where the body is often an HTML document.
We demonstrated how a client/server can be developed using simple socket. While possible, this approach requires a lot of work to develop a fully functional HTTP server. This ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access