In web design, whether dynamic or static, get method is the default, it is limited in the URL address length, so get request method can transmit data is also limited, the general gets method can pass 256 bytes of data, when the request method passed data length is not satisfied with the demand, You need another request method. The maximum value of the data to be passed by the Post,post method is 2mb correspondingly, the form method is required to read the data passed by the Post method. The Post method does not see the parameter data that is passed when the ASPX page executes, More conducive to the security of the page, so generally use the Post method to transfer page data.
Here's a simple example:
Get method
HTML page:
Send a GET request
corresponding ASPX page:
Receive the content from the Get method:
Post method
HTML page:
Send POST request
Enter what to send:
<input type =text name= "Content1"/> <br/> <input
type =submit value = "Send"/>
gt;
</center>
</body>
corresponding ASPX page:
Receive the contents of the Post method:
With the Get method, when the ASPX page is executed, the address bar appears with a character "? content1=html input Value ", but the post method, not shown, in contrast, the Post method is relatively safe to apply.
The above is the entire content of this article, we should have a get method and post method of the difference between the understanding of it, I hope this article for everyone's learning help.