iOS Learning---http Protocol

Source: Internet
Author: User

The basic concept of HTTP protocol: Hypertext Transfer Protocol,

HTTP request:

The user loads the network data: the user sends the request data to the server through the client or the browser, the server receives the request information, responds, and returns the data requested by the user to the user.

There are several ways to request HTTP protocols, and there are two common ones: get requests and post requests

A GET request is a way to request data from a server,

A POST request is a way to submit data to the server, such as "User login", etc.

The HTTP request consists of two main parts: the HTTP request header and the HTTP request body. Only the request body is available for the POST request.

The requested parameters are in two forms 1. Placed behind the URL, 2, in the request body

HTTP response:

The HTTP response consists of two parts: The response header, the response content

The HTTP response has a status code that indicates the response result for example: 200 for success, 404 for Page not found.









iOS Learning---http Protocol

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.