Internet Direct (Indy) Version 9.0.1 Beta
TIdHeaderList.Extract
Finds and stores all values for the given header name.

procedure Extract(const AName: string; ADest: TStrings);
Parameters
const AName: string
Header name to be located and stored.

ADest: TStrings
TStrings to store all located header values.

Description
Extract is a procedure that is used to search the header list for all occurrences of the header in AName. When the header in AName is located, the value of the header is added to ADest. ADest can, as a result, contain multiple values for the named header, with one value per line.

Note: ADest is not cleared prior to use in Extract. Any existing values in ADest are unaffected.