Summary of the difference between get and post for ajax requests

  • 2020-03-26 23:07:59
  • OfStack

If the request url does not change, take out the cache to improve efficiency. Requests will be cached in the browser, you can view the user information through the history, security is low;

Post transmits changing data to show variable access;

Get transmits data through the url address, and the amount of data cannot exceed 1024 bytes;

Post, as the entity content of the HTTP message, is sent to the server.

Get to pass data through encodeURIComponent code, to prevent confusion.

Get method, the server side with request-querystring to get the value of the variable;

Post mode, the server side USES request-form to obtain the submitted data;

Parameters in both ways can be obtained using Request.

Related articles: