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

util_cookie_find() Function

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


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

Return Values

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


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

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