Protocol protocol
- protocol. It is intended to define each rule associated with it. Http is a protocol too. All of the above rules (including the rules of http-verbs) are defined by the http protocol, and use is determined by the http protocol. If you do not follow these rules, you will understand what is happening inside your service. It will not follow protocol rules and will be confusing for other users. There was an example, once, about a famous photo site (no matter which one) that deleted photos with a GET request. After the user of this site has installed the search program on the Google desktop, this allows you to archive pages locally. Since this program knew that GET operations were only used to retrieve data and should not affect anything, they made GET requests to every available URL (including these GET-delete URLs). When the user logged in and the cookie was in the browser, there were no problems with authorization. And the result is that all user photos were deleted on the server due to the incorrect use of the HTTP protocol and GET verb. That is why you should always follow the rules of the protocol that you use. Although it is technically possible, it is incorrect to redefine certain rules.
source share