Sets the specified cookie in the cookie header of the request.
#include "am_web.h" AM_WEB_EXPORT am_status_t am_web_set_cookie(char *cookie_header, const char *set_cookie_value, char **new_cookie_header);
This function takes the following parameters:
Pointer to the cookie header.
Pointer to the cookie name and value in the set-cookie response header form. This value should be the same as that of the cookieValues parameter of the am_web_result_set_header_attr_in_request_func_t function.
Pointer to a pointer to the original cookie header, or a new cookie header value which needs to be freed by the caller. This value can be NULL.
This function returns one of the following values of the am_status_t enumeration (defined in the <am_types.h> header file):
If successful.
The type of error indicated by the status value.