Difference Between Get And Post Rest. Jul 16 2019 GET requests are often used for fetching documents and GET parameters are used to describe which document we are looking for or what page we are on or things of that nature. The particular section I want to highlight as a difference is this.
Both GET and POST method is used to transfer data from client to server in HTTP protocol but Main difference between POST and GET method is that GET carries request parameter appended in URL string while POST carries request parameter in message body which makes it more secure way of transferring data from client to server in http protocol. Its a mistake to allow your server to change state after a GET request since you can never know that the GET request was genuineintentional. The HTTP methods POST and PUT arent the HTTP equivalent of the CRUDs create and update.
For each action you want to perform you need to define a resource on which you usually do only CRUD operation which is a simple task.
The particular section I want to highlight as a difference is this. 2 Get request is not secured because data is exposed in URL bar. When should we use PUT and when should we use POST. GET is less secure compared to POST because data sent is part of the URL Never use GET when sending passwords or other sensitive information.
