Sun OpenSSO Enterprise 8.0 C API Reference for Application and Web Policy Agent Developers

am_web_create_post_page()

Creates an HTML form that submits the POST data with invisible name/value pairs.

Syntax

#include "am_web.h"
AM_WEB_EXPORT char * 
am_web_create_post_page(const char *key,
                        const char *postdata,
                        const char *actionurl,
                        void* agent_config);

Parameters

This function takes the following parameters:

key

Pointer to the unique key identifying a POST data entry. It is used to remove post data once the page is re-posted.

postdata

Pointer to a browser encoded string representing the POST data entry.

actionurl

Pointer to the POST destination URL.

agent_config

An agent configuration instance returned by am_web_get_agent_configuration(). This parameter should not be NULL.

Returns

This function returns char * as the POST form to be submitted.