•GET: The GET method is used to retrieve information from a specified source. It is one of the most common HTTP methods and is used to retrieve data from an API. GET requests can be cached, remain in the browser history, and can be bookmarked. GET requests should never be used when dealing with sensitive data; as they are passed on the URL they are inherently insecure.
•POST: The POST method is used to submit information to a specified source. It is typically used to send data along with the request. POST requests are never cached and do not remain in the browser history. These types of requests should always be used when dealing with sensitive data, as the data is passed directly through the request and does not appear in the URL. •PUT: The PUT method is used to update existing resources in a specified source. PUT requests are typically not cached and do not remain in the browser history. PUT requests are generally used when dealing with sensitive data, as the data is passed directly through the request and does not appear in the URL. •DELETE: The DELETE method is used to delete existing resources in a specified source. DELETE requests are typically not cached and do not remain in the browser history. DELETE requests should always be used when dealing with sensitive data, as the data is passed directly through the request and does not appear in the URL.GET:
GET is a method used to retrieve information from a web server using a specific URL. The response body can normally consist of HTML, XML or JSON formatted data.
POST:
POST is a method used to create a new resource or modify an existing one. It sends data to the server and is typically used when submitting a form.
PUT:
PUT is a method used to update existing resources inside a web server. The request body passes data to the server, which is then selected and replaced using the existing URL.
PATCH:
PATCH is a method used to update a single field or property of an existing resource on a web server. It is typically used when updating a single field or property of an existing resource, as opposed to making a wholesale update.
DELETE:
DELETE is a method used to remove a resource from the web server. It is typically used when deleting an existing resource.
No comments:
Post a Comment