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.