URL decodes a HTTP cookie.
#include "am_utls.h" AM_EXPORT am_status_t am_http_cookie_decode(const char *cookie, char *buf, int len);
This function takes the following parameters:
The cookie to be URL decoded.
The buffer to put the decoded cookie
The size of the buffer
This function returns am_status_t with one of the following values:
If the cookie was successfully decoded and copied into buf.
If the cookie or buffer was NULL or len was smaller than the size of the decoded value.
Other error occurred while decoding cookie.