Junior
What are the main HTTP methods you know?
sobes.tech AI
Answer from AI
The main HTTP methods are:
- GET — request to retrieve data from the server.
- POST — send data to the server to create a resource.
- PUT — update an existing resource or create it if it does not exist.
- DELETE — delete a resource.
- PATCH — partial update of a resource.
- HEAD — request headers of a resource without the body.
For example, GET is used to retrieve a page, POST — to submit a form.