Get and post are the two basic methods of HTTP requests in the HTTP protocol.
HTTP is a TCP/IP-based protocol about how data communicates in the World Wide Web.
The underlying HTTP is TCP/IP. So the bottom of GET and post is TCP/IP, which means that get/post are TCP links. Get and post can do the same thing. You have to add the request body to the GET, and the URL parameter to the post, technically it's all in line.
The basic Difference
1. Is the get parameter is included in the URL, post through the request body pass parameters
2.GET is harmless when a browser is rolled back, and post submits the request again.
-
The GET request will be active by the browser cache, and post will not, unless manually set.
-
A GET request can only be URL-encoded, while post supports multiple encoding methods.
-
The GET request parameters are kept intact in the browser history, and the parameters in the post are not retained.
-
A GET request has a length limit for the parameters that are passed in the URL, and post does.
-
For data types of parameters, get accepts only ASCII characters, while Post has no restrictions.
-
Get is less secure than post, because parameters are directly exposed to URLs, so they cannot be used to pass sensitive information.
-
The get parameter is passed through the URL and the post is placed in the request body.
2. There is also a significant difference between get and post:get generates a TCP packet, Post generates two TCP packets (Firefox also requests only once)
Differences between get and post for IOS networks