Internet Direct (Indy)
Home
PreviousUpNext
TIdHeaderList.Extract Method

Finds and stores all values for the given header name.

Pascal
procedure Extract(
    const AName: string; 
    ADest: TIdStrings
);
Parameters 
Description 
AName 
Header name to be located and stored.
 
ADest 
Stores all located header values. 

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. 

When ADest is unassigned, no action is performed in the method. 

Set CaseSensitive to indicate if case-sensitivity is important when comparing AName to header names in the object instance. 

Extract iterates over header Names and Values, and adds Values matching AName to ADest. 

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

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.