HTTP methods
The method that is the first word in the status line of the request tells the server what to do with the request. The standard defines different methods, such as GET, HEAD, POST, PUT, DELETE, and some others.
The client uses the GET method when it wants to get the content of a resource. In the case of a GET request, the body of the request is empty. This is the method used by the browser when we download a web page. It is also, many times, the method used when some program implemented in JavaScript and running in the browser asks for some information from a web application, but it does not want to send much information to the server.
When the client uses POST, the intention is usually to send some data to the server. The server ...
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