HTTP (Hypertext Transfer Protocol) is the main standard that data is moved on the World Wide Web. The protocol functions by sending different request packets.
Request structure
Methods are the first word of the request packet, and they specify what functionality we want the server to do for us. They’re not obligated to carry out every request it gets.
- GET means we want to retrieve the specified resource.
- POST sends information to it.
- DELETE tells the server to delete a resource.
- PUT creates or replaces a resource.