Encodes an HTTP cookie.
#include "am.h" AM_EXPORT am_status_t am_http_cookie_encode(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 encoded and stored.
If the cookie or buffer is NULL..
If the defined size is smaller than the encoded value.
If any other error occurred.