HTTP is a stateless request/response protocol where clients request information from a server and the server responds to these requests accordingly. A request is basically made up of a method, a resource, some headers, and some optional content. A response is made up of a three-digit status code, some headers and some optional content. This can be observed in the following diagram:
Each resource, originally thought to be a collection of Hypertext documents or HTML documents, is identified by a
Uniform Resource Locator (URL). Clients simply use the GET
method to request a resource from the corresponding server. In the structure of the URL presented next, the resource is identified by the path and the server by the authority portions of the URL. The PUT
and DELETE
methods allow clients to upload and remove content from the server, while the POST
method allows them to send data to a resource on the server, for instance, in a web form. The structure of...