Decodes an HTTP cookie.
#include "am.h" AM_EXPORT am_status_t am_http_cookie_decode(const char *cookie, char *buf, int len);
This function takes the following parameters:
Pointer to the cookie.
Pointer to the buffer where the encoded cookie will be stored.
The size of the buffer.
This function returns one of the following values of the am_status_t enumeration (defined in the <am_types.h> header file):
If the cookie was successfully decoded and coped.
If the cookie or buffer is NULL..
If the defined size is smaller than the decoded value.
If any other error occurred.