Forum Discussion
1 Reply
Sort By
- hooleylistCirrostratusYou can iterate through the header names and look for a header name that starts with x- and then log the header name and value.
when HTTP_REQUEST { initializes a variable to store the headers set headers loop through the header names foreach aHeader [HTTP::header names] { check if this header starts with x- if {[string tolower $aHeader] starts_with "x-"}{ add the header name and value to the headers variable set headers "$headers; $aHeader: [HTTP::header value $aHeader]" } } if {$headers}{ log local0. "client: [IP::client_addr]; x- headers: $headers" } }