An explanation of the HTTP protocol

Source: Internet
Author: User

"An explanation of the HTTP protocol"

? Request Section

* Request Line

* Submission Method:

* There are many ways to submit, commonly used get and post:

* The difference between get and post:

* Get the submitted parameters are displayed on the address bar, and post is not displayed.

* Get is often limited by size, while post has no size limit.

* Get has no request body, while Post has request body.

* Submission Path:

* Protocol version:

* Request Header

* are displayed in the form of key-value pairs. Typically a key corresponds to a value, and there is an individual key that corresponds to more than one value.

* User-agent: Represents the type of browser. ---file download: Download the Chinese file: IE uses Urlencodor to encode, while Fddddddddddddddddirefox uses BASE64 encoding.

* Referer: Represents the source of the Web page. ---anti-theft chain.

* If-modified-since: Typically used with header last-modified in the response to find the local cache.

* Request Body

* is the submit parameter of the Post submission method.

? Response Section

* Response Line:

* Protocol version

* Status Code:

* 200: Success

* 302: Redirect

* 304: Find local cache

* 404: Resource does not exist

* 500: Server Internal Error

* Status Code description

* Response Header: Key value pairs, usually a key corresponding to a value, there is a key corresponding to more than one value.

* Last-modified: Use with if-modified-since in the request to find the local cache.

* Content-disposition: The use of a header information for file download.

* Location: Redirect The path of the jump.

* Refresh: Timed update/timed jump.

* Response Body: Displays the contents of the browser's page.

An explanation of the 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.