Why is using a HTTP GET to update state on the server in a RESTful call incorrect?

后端 未结 5 1118
南笙
南笙 2021-01-17 20:22

OK, I know already all the reasons on paper why I should not use a HTTP GET when making a RESTful call to update the state of something on

5条回答
  •  耶瑟儿~
    2021-01-17 21:13

    If some form of search engine spiders your site it could change your data unintentionally.

    This happened in the past with Google's Desktop Search that caused people to lose data because people had implemented delete operations as GETs.

提交回复
热议问题