HTTP:
Post and get are two methods in the HTTP protocol. The interaction of the browser and the server is performed through the HTTP protocol, and his full name is Hyper Text Transfer Protocol (Hypertext Transfer Protocol). HTTP is to allow the client and the server between the request and consent, HTTP, the browser and the server to communicate, define the different methods
There are four basic methods: (These four methods can be understood as, the server resources of the search, change, increase, delete.) )
- Get: Get data from the server, so-called check, just to get the server resources, not to modify.
- Post: Submitting data to the server, which involves updating the data, that is, changing the server's data.
- Put:put's English meaning is to place, that is, to add new data to the server, that is, the so-called increase.
- Delete: As you can see in the literal sense, this is the process of deleting server data.
Get:
- Get interaction is secured by fetching data from the server and not modifying the data.
- Get interactive mode is idempotent, idempotent is a mathematical concept, idempotent function is can be repeated with the same parameters, and get the same result function. Get here for multiple requests to the same URL, the result is the same
Post:
Post interaction is a way to modify the server data, involving the modification of the information, there will be security issues.
The difference between post and get in Ajax-http