顶部信息栏,显示网站标题、Logo等资

What’s the difference between post and get in html?

5/1/2015 Source:Backyard [comment]



Form of get and post method, the data transmission process corresponding to the HTTP protocol GET and POST methods. The main differences are as follows:

1, Get used to obtain data from the server, and Post are used to transmit data to the server.

2, Get in accordance with the data in the form variable = value in the form appended to the URL action points, and both use the connection, but using the "&" connection between the individual variable "?"; Post is in the form of data on the form of the data volume, according to the variables and values in a corresponding manner, is transmitted to the action points to URL.

 3, Get is unsafe because the transmission process, the data is placed in the requested URL, and now many of the existing server, proxy server or user agent will request URL to a log file, and then placed in a place, so that there may be some privacy information by a third party to see. In addition, users can see the data submitted in the browser, some of the system's internal message will be displayed along with the user. Post all operations on users it is not visible.

4. Get the amount of data transmission is small, mainly because by URL length limit; the Post can transmit large amounts of data, it can only be used to upload files Post in .

5, the value of the form's Form Get to limit the data set must be ASCII characters; and ISO10646 Post supports the entire character set.

 6, Get is the default method of Form.