Gets the value of the given query parameter from the given URL.
#include "am_web.h" AM_WEB_EXPORT am_status_t am_web_get_parameter_value(const char *inpQuery, const char *param_name, char **param_value);
This function takes the following parameters:
URL to look for the query parameter.
Name of the query parameter.
Pointer to be filled with the value of the param_name query parameter in the given URL if found.
The returned parameter value should be freed by the caller using am_web_free().
This function returns am_status_t with one of the following values:
If the query parameter was found in the URL.
If any of the arguments is NULL.
If the query parameter is not found.
If memory could not be allocated for the query parameter value.
If any other error occurred.