The HEAD of the HTTP request method

Source: Internet
Author: User

The HTTP request method is not only get and post, but is most commonly used. According to the RFC2616 standard (current http/1.1), there are usually the following 8 ways:options,GET,HEAD, POST, PUT, DELETE, Trace and connect.

Official definition

The head method is the same as the Get method, except that the message body is not returned by the server response. In response to a head request, the HTTP header contains the same meta information as the response message for a GET request. This method can be used to get the meta information that is implied in the request without transmitting the entity itself. It is also often used to test the validity, usability, and recent modification of hyperlinks.

A HEAD request response can be cached, that is, the information in the response may be used to update the previously cached entity. If the current entity is different from the threshold of the cache entity (which can be indicated by changes in Content-length, CONTENT-MD5, ETag, or last-modified), then the cache is considered expired.

Nutshell

Head requests are often overlooked, but can provide a lot of useful information, especially at limited speeds and bandwidth. The main features are as follows:

1, only the first request for resources;

2, check the validity of hyperlinks;

3, check whether the webpage is modified;

4, more for automatic search robot to obtain Web page logo information, access to RSS seed information, or transmission of security certification information, etc.

The HEAD of the HTTP request method

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.