Oracle iPlanet Web Proxy Server 4.0.14 NSAPI Developer's Guide

util_cookie_find

The util_cookie_find function finds a specific cookie in a cookie string and returns its value.

Syntax

char *util_cookie_find(char *cookie, char *name);

Returns

If successful, returns a pointer to the NULL-terminated value of the cookie. Otherwise, returns NULL. This function modifies the cookie string parameter by NULL-terminating the name and value.

Parameters

char *cookie is the value of the Cookie: request header.

char *name is the name of the cookie whose value is to be retrieved.