RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWebRequest.ExtractFields Method

Parses a multi-valued string into its constituent fields.

Pascal
procedure ExtractFields(Separators: TSysCharSet; WhiteSpace: TSysCharSet; Content: PChar; Strings: TStrings);
C++
__fastcall ExtractFields(TSysCharSet Separators, TSysCharSet WhiteSpace, const char * Content, TStrings Strings);

Call ExtractFields to parse a multi-valued HTTP header into separate strings for each value. For example, if the separator character of the UserAgent property is known, ExtractFields can parse this property into separate UserAgent values. 

Separators is a set of characters that are used to separate individual values within the multi-valued string. WhiteSpace is a set of characters that are to be ignored when parsing the string. Content is the multi-valued string to be parsed. Strings is the TStrings object that receives the individual values that are parsed from Content

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!