Sun Java System Access Manager 7 2005Q4 C API Reference

am_web_remove_parameter_from_query()

Removes the given query parameter from the URL, if it is in the URL.

Syntax

#include "am_web.h"
AM_WEB_EXPORT am_status_t
am_web_remove_parameter_from_query(const char* inpString,
                                   const char *remove_str,
                                   char **outString );

Parameters

This function takes the following parameters:

inpString

The original URL

remove_str

The query parameter to be removed

outString

Pointer to location where a new URL with the query parameter removed will be inserted.

The value returned should be freed using am_web_free().

Returns

This function returns am_status_t with one of the following values:

AM_SUCCESS

If the call was successful.

AM_*

If any error occurs, the type of error indicated by the status value.