Sign in Join
FPDoc Onlineexperiment

TFPCustomHTTPClient.Head procedure

Member of TFPCustomHTTPClientpublicIn unit fpHTTPClient

Performs an HTTP HEAD request

Declaration

pascal
class procedure Head(const AURL: string; Headers: TStrings)

Arguments

AURL

The URL to send the HEAD request to

Headers

Variable to store the response headers

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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.