Sun Java System Access Manager 7.1 C API Reference

am_web_get_parameter_value()

Gets the value of the specified parameter from the specified request URL.

Syntax

#include "am_web.h"
AM_WEB_EXPORT am_status_t
am_web_get_parameter_value(const char *inpQuery,
                           const char *param_name,
                           char **param_value);

Parameters

This function takes the following parameters:

inpQuery

Pointer to the request URL that holds the parameter.

param_name

Pointer to the name of the parameter.

param_value

Pointer to a pointer to be filled with the value of the param_name parameter, if found.

Returns

This function also returns one of the following values of the am_status_t enumeration (defined in the <am_types.h> header file):

AM_SUCCESS

If the query parameter was found in the URL.

AM_*

If any other error occurred.

Memory Concerns

The returned parameter value should be freed by the caller using am_web_free().