Function pfwl_http_get_header

Function Documentation

uint8_t pfwl_http_get_header(pfwl_dissection_info_t *dissection_info, const char *header_name, pfwl_string_t *header_value)

pfwl_http_get_header Extracts a specific HTTP header from the dissection info.

Return

0 if the http header was present, 1 otherwise. If 1 is returned, ‘header_value’ is not set.

Parameters
  • dissection_info: The dissection info.

  • header_name: The name of the header (‘\0’ terminated).

  • header_value: The returned header value.