Sun Java System Web Server 7.0 Update 4 NSAPI Developer's Guide

pblock_nvinsert() Function

The pblock_nvinsert function creates a new entry with a given name and character value in the specified pblock. The name and value parameters are copied.

Note –

Parameter names are case sensitive. By convention, lowercase names are used for parameters that correspond to HTTP header fields.


pb_param *pblock_nvinsert(char *name, char *value, pblock *pb);

Return Values

A pointer to the newly allocated pb_param structure.


char *name is the name of the new entry.

char *value is the string value of the new entry.

pblock *pb is the pblock into which the insertion occurs.


pblock_nvinsert("content-type", "text/html", rq->srvhdrs);

See Also

pblock_copy() Function, pblock_create() Function, pblock_find() Function, pblock_free() Function, pblock_nninsert() Function, pblock_remove() Function, pblock_str2pblock() Function