Request data simultaneous parameter to transcode Chinese characters
Get data, all parameter information will be exposed
The Get method is compared to the Post method:
Advantages:
GET:
1. The request is convenient, directly with a complete path to request data acquisition
2. The request body will not be sent during the sending request, and the server's encapsulation will not be compromised. From this point of view, get is safe relative to post.
POST:
1. When the request is sent, the parameters are encapsulated in the request body and are not exposed directly to the parameter information. From this point of view, post is a bit safer relative to get.
2. When using post to request data, pass the parameter through the request body, the parameter size is much larger than the parameter size passed by Get method, more flexible
Disadvantages:
GET:
1.GET request data exposes parameter information and is visible to anyone. From this point of view, get is not secure relative to post.
2.GET method through the direct stitching parameters to the server to request data, URL input length has a limit, the parameters are particularly high, it will be truncated.
POST:
1. Request to send parameters through the request body, the GET request is less convenient.
2.POST requests, the request body is sent to the server, which destroys the encapsulation of the server. From this point of view, it is not safe relative to get
The pros and cons of iOS post and get