AJAX: get or post?

GET or POST?

GET is simpler and faster than POST, and works in most cases.

However, use a POST request in the following cases:

  • Unable to use cache file (update file or database on server)
  • Send large amounts of data to the server (POST has no data limit)
  • POST is more stable and reliable than GET when sending user input containing unknown characters

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325483601&siteId=291194637