NEXT_HTTP_VARIABLE function [HTTP]

Get the next HTTP variable name.

Syntax
NEXT_HTTP_VARIABLE( var-name )
Parameters
  • var-name   The name of the previous variable. If var-name is NULL, this function returns the name of the first HTTP variable.

Remarks

This function iterates over the HTTP variables included within a request. Calling it with NULL causes it to return the name of the first variable. Subsequent variables are retrieved by passing the function the name of the previous variable. This function returns NULL when called with the name of the final variable, when not called from a web service.

Calling this function repeatedly returns all the variables exactly once, but not necessarily in the order they appear in the HTTP request. The variables url or url1, url2, ..., url10 are included if URL PATH is set to ON or ELEMENTS, respectively.

See also
Standards and compatibility
  • SQL/2003   Vendor extension.

Example

The following example gets the name of the first HTTP variable.

DECLARE variable_name LONG VARCHAR;
SET variable_name = NULL;
SET variable_name = NEXT_HTTP_VARIABLE( variable_name );