HTTP basic point of knowledge

Source: Internet
Author: User

Media type for HTTP

The Web server appends a MIME type to all HTTP object data, and when the browser receives the data, it determines how the data is processed based on the MIME type.

Common MIME-type classifications:
    1. Text document in text/html:html format
    2. Text/plain: Plain ASCII text document
    3. Pictures of image/jpeg:jpeg format
    4. Pictures of image/gif:gif format
    5. Video/quicktime:apple's QuickTime movie is
    6. application/vnd.ms-powerpoint:ppt Format Files
URI (Uniform Resource Identifier)

URIs are categorized as URLs (Uniform Resource Locators) and urns (Uniform Resource names), and most of the URIs are URLs at this time.

The URL is divided into three parts: HTTP protocol (\ http) + server's Internet address (e.g., www.joes-hardware.com) + resource location (e.g.,/specials/saw-blade.gif)

Common HTTP methods
    1. GET: Send a named resource to the client from the server
    2. Put: Store data from the client to the server's named resource
    3. Delete: Remove named resources from the server
    4. POST: Sending client data to a program on the server
    5. HEAD: Sends only the HTTP header in the named resource corresponding
Status code

The HTTP response header will carry the status code.

Common Status Codes:
    1. 200:ok
    2. 302: Redirect
    3. 404: No Resources found

HTTP basic point of knowledge

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.