Skip to content

TFPCustomHTTPClient.Head

Performs an HTTP HEAD request

Declaration

Source position: fphttpclient.pp line 359

public 
class procedure TFPCustomHTTPClient.Head(const AURL: string; 
                                        Headers: TStrings);

Description

Performs an HTTP HEAD request to retrieve only the headers for a resource without the body content. Useful for checking resource metadata, existence, or modification dates.

Errors

May raise HTTP-related exceptions on connection errors or invalid responses.

See also

Name Description
Get Performs an HTTP GET request