Internet Direct (Indy)
Home
PreviousUpNext
TIdCustomHTTPServer.ParseParams Property

Requests parsing of query parameters in client requests.

Pascal
property ParseParams: boolean;

ParseParams is a Boolean property that indicates the string list should be populated with the query values from the client request query string (GET method) or form values (POST method). 

For a client request in the form: 

 

  http://www.mydomain.com/test.htm?color=blue&size=10&style=44

 

The Params property would contain: 

 

  color=blue size=10 style=44

 

The developer has easy access to the value of named parameters using the RequestInfo.Params.Values property: 

 

  Color := RequestInfo.Params.Values['Color'];

 

To parse non-standard request query or form data, the ParseParams property should be set to false, and the developer will need to build a parser to extract the parameters from the UnparsedParams property. 

The default value for ParseParams is Id_TId_HTTPServer_ParseParams, as assigned during initialization of the component.

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.