Oracle iPlanet Web Proxy Server 4.0.14 NSAPI Developer's Guide

param_create

The param_create function creates a pb_param structure containing a specified name and value. The name and value are copied. Use this function to prepare a pb_param structure to be used in calls to pblock routines such as pblock_pinsert.

Syntax

pb_param *param_create(char *name, char *value);

Returns

A pointer to a new pb_param structure.

Parameters

char *name is the string containing the name.

char *value is the string containing the value.

Example

pb_param *newpp = param_create("content-type","text/plain");
	pblock_pinsert(newpp, rq->srvhdrs);

See Also

param_free, pblock_pinsert, pblock_remove