We've seen what the GET method does, but what about those other methods: POST, PUT and DELETE? Their existence points out that web servers can and do do more than serve web pages. They can allow us to upload, edit and delete resoruces as well.
Consider again the guidelines for using those methods:
You'll notice that although the names differ these four operations map neatly onto the CRUD model of operations.
| CRUD | HTTP |
|---|---|
| Create | POST |
| Retrieve | GET |
| Update | PUT |
| Delete | DELETE |
This is no accident; the engineers who designed HTTP knew what they were doing. Modern best practice in web development is to build servers that implement REST architecture. This stands for Representational State Transfer and is a topic unto itself, but you won't go far wrong if you think of it as treating HTTP as CRUD using other names, and that's what we will do.