"Reading notes" iOS network-http-request content

Source: Internet
Author: User

One, get method.

Get a piece of content from the server, which is the entity in HTTP terms. A GET request typically does not contain a request body, but it can also be included. Some network cache facilities only cache get responses. Get requests typically do not cause data changes on the server side.

Two, post method.

Updates the entity with the data provided by the client. Post requests typically include the information required by the application server in the request body. The POST request is non-idempotent, which means that if multiple requests are processed, the result is different from processing a single request.

Third, although HTTP uses a stateful TCP Transport layer, HTTP is a stateless protocol. This means that the HTTP server does not retain any information about a request to be used in future requests. Cookies provide a way for you to store some simple state information to the client and communicate with the server in subsequent requests.

Reference: "iOS network advanced programming-iphone and ipad Enterprise application Development"

"Reading notes" iOS network-http-request content

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.