The HTTP HEAD method requests the header information of the resource, and these headers are consistent with those returned when requested by the HTTP GET method. One usage scenario of this request method is to obtain the size of a large file before downloading it and then decide whether to download it. In this way, Save bandwidth resources.
The response to the HEAD method should not contain the response entity. Even if the entity is included, it must be ignored. Although entity headers describing entity information, such as Content-Length, may be included in the response, they are not used to describe the HEAD response itself. , but is used to describe the response that should be returned by a GET request under the same situation.
HTTP HEAD request
https://developer.mozilla.org...
Construct the tcp package and set the window to 0. I remember that the function you want to implement can be used to do bad things. You can check DoS.