Sets an HTTP header in a request.
If a header of the same name already exists it should be replaced with this header.
#include "am_web.h" typedef am_status_t (*am_web_set_header_in_request_func_t)( void **args, const char *name, const char *val);
This function takes the following parameter:
Pointer to a pointer to agent defined parameters.
Pointer to the name of the header.
Pointer to the value of the header.
If header was successfully added.
If not successfully freed, the status will be logged as a warning but ignored.