HEAD Request Example [Java Code]

The HEAD request method is used to request HTTP headers from the server. The HTTP HEAD method is similar to the HTTP GET method, except that the server does not return the content of the requested resource. The HEAD method is used to get additional information about a resource, such as a resource size, availability, and last modification date before downloading it. In this HTTP HEAD request example, we are sending an HEAD request to the ReqBin echo URL. Click Send to run the HEAD request online and see the results. The Java code was automatically generated for the HEAD Request example.
Loading...