The difference between get and post requests in the Web:
1, get is to add the parameter data queue to the submission form the Action property refers to the URL, the value and the form within the field one by one corresponding to the URL can be seen. Post is the HTTP post mechanism that places the fields within the form with their contents in the HTML header, along with the URL address referred to by the Action property. The user does not see the process.
2, for Get mode, the server side uses Request.QueryString to get the value of the variable, for the Post method, the server side uses Request.Form to obtain the data submitted. The parameters of both methods can be obtained by using request.
3, get the amount of data transmitted less than 2KB. Post transmits a large amount of data, which is generally not restricted by default. In theory, however, the server varies.
4, get security is very low, post security is high.
5, <form method= "get" action= "A.asp?b=b" > <form method= "Get" action= "a.asp" > is the same, that is to say, The argument list behind the action page is ignored, while the <form method= "post" action= "A.asp?b=b" > <form method= "Post" action= "a.asp" > is not the same. Another GET request has the following characteristics: It adds data to the URL, which is passed to the server in this way, usually using a question mark? Represents the end of the URL address and the beginning of the data parameter, followed by a parameter each data parameter in the form of "name = value", the parameters and parameters are separated by a connector &. The POST request has the following characteristics: The data is placed in the HTTP body, its organization is not only one, there is a & connection, there is a delimiter way, can hide parameters, transfer large numbers of data, more convenient.
In summary: When we submit a form we usually use post, and when we want to transfer a larger data file, we need to use post. When the value passed is only used in the parameter mode (this value is not more than 2KB), you can use the Get method.
There are 5 differences between get and post methods in form submission.
1. Get is the data that is fetched from the server and post is the data sent to the server.
2. Get is the URL where the parameter data queue is added to the Action property of the submission form, and the value corresponds to the field one by one in the form, which is visible in the URL. Post is the HTTP post mechanism that places the fields within the form with their contents in the HTML header, along with the URL address referred to by the Action property. The user does not see the process.
3. For Get mode, the server side uses Request.QueryString to get the value of the variable, and for post, the server side uses Request.Form to obtain the submitted data.
4. Get transmits a small amount of data, cannot be greater than 2KB. Post transmits a large amount of data, which is generally not restricted by default. In theory, however, the maximum amount of IIS4 is 100KB in 80KB,IIS5.
5. Get security is very low, post security is high.
In the background server, we usually use Request.getparameter (String name) to get the parameters of Get mode,
The use of the form in the Post request method is the string s1=request.form["uname"]; Get foreground data.
Requests in the Web: Get vs. post