The pros and cons of iOS post and get

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.