com.HTTPServiceRequest.readFormEncodedRequest

Returns the string of a GET request with UTF-8 conversion option.

Syntax

readFormEncodedRequest(
   utf8 BOOLEAN )
  RETURNING result STRING
  1. utf8 defines if the string must be decoded to the current charset.

Usage

The readFormEncodedRequest() method returns the query of a POST "application/x-www-form-urlencoded" request or the query string of a GET request, decoded according to HTML4 or XFORM if utf8 is TRUE.

The request content can be read only once.

If the parameter is TRUE, the decoded query string is translated from UTF-8 to the current character set. This may lead to a conversion error.