vyrs_278584
Jul 12, 2016Nimbostratus
Display specific headers
I'm passing PKI certificate information inside headers and have a VIP that displays a user's headers for troubleshooting access problems. I updated my iRule to insert the entire certificate into a header but I don't want this information displayed along with the headers I usually pass. How can I display all of my headers except the one titled base64?
How I insert the whole certifiate into the headers:
HTTP::header replace BASE64 [X509::whole [SSL::cert 0]]
How I normally display headers on my troubleshooting site:
foreach header [HTTP::header names] {
set HEADER_RESPONSE "$HEADER_RESPONSE > $header = [HTTP::header $header]
"
}
My attempt to fix exclude the whole certificate header:
foreach header [HTTP::header names] {
if { ! [matchclass [string tolower [HTTP::header names]] starts_with "base" ]} {
set HEADER_RESPONSE "$HEADER_RESPONSE > $header = [HTTP::header $header]
"}}