Making a Request and Receiving a Response
When given a URL, a web browser performs an HTTP transaction to retrieve and display the web page at that address. Figure 30.1 illustrates the transaction, showing the interaction between the web browser (the client) and the web server (the server).
In Fig. 30.1, the web browser sends an HTTP request to the server. Underneath the hood, the request (in its simplest form) is
GET /books/downloads.html HTTP/1.1
The word GET is an HTTP method indicating that the client wishes to obtain a resource from ...
Get Java™ How To Program (Early Objects), Tenth Edition 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.