Internet Direct (Indy) Version 9.0.2 Beta
TIdHTTP.Head
Requests header values for a resource.

procedure Head(AURL: string);
Parameters
AURL: string
Location of the resource.

Description
Head is a procedure used to request the header values for the resource specified in URL. Head is identical to Get, except that the server does not return a message body in the Response. Head can be used to obtain metainformation about the entity implied by the request without transferring the full content of the resource. Head is often used for testing the valuein URL for validity, accessibility, and recent modification.

Head calls the DoRequest method to perform the HTTP transfer. The returned header values can be found in Response.