get and post in ajax are two common methods for request-response on the client and server. So, what is the difference between get and post requests? This article will introduce to you the difference between post request and get request in ajax. Friends in need can refer to it.
Let’s take a look at the concepts of get request and post requestrequest in ajax respectively.
The get request is to request data from a specified resource. The get request is basically used to obtain (retrieve) data from the server. Note: The GET method may return cached data. The post request is to submit the data to be processed to the specified resource. The post request can also be used to obtain data from the server. However, the post method does not cache data and is often used to send data along with the request. From the above description of the concepts of get request and post request in ajax, we can actually find the differences, but for beginners, they should not be able to better understand it simply from the concept. , let’s take a closer look at the difference between get requests and post requests inajax.
The difference between get request and post request in ajax 1:
The difference between get request and post request in ajax 2:
For the get method, the server side uses Request.QueryString to obtain the value of the variable. For the post method, the server side Use Request.Form to obtain submitted data. Parameters in both ways can be obtained using Request.Difference 3 between get request and post request in ajax:
The amount of data transmitted by get is small and cannot be greater than 2KB. The amount of data transmitted by post is relatively large and is generally unrestricted by default. But in theory, it varies from server to server.The difference between get request and post request in ajax is four:
Get security is very low, and post security is high.The difference between get request and post request in ajax five: