Desire to view contents of If-Modified-Since & If-None-Match http headers
Using iRule below:
when HTTP_REQUEST {
set rqst_headers [HTTP::header names]
set hsl [HSL::open -proto UDP -pool HIGH_SPEED_LOGGING]
HSL::send $hsl "REQUEST HEADERS = $rqst_headers"
if { [HTTP::header exists If-Modified-Since] }{
set since_modded [HTTP::header value If-Modified-Since]
HSL::send $hsl "If-Modified-Since exists: [HTTP::header If-Modified-Since] CACHE DISCOVERY $since_modded "
}
if { [HTTP::header exists If-None-Match] }{
set none_match [HTTP::header value If-None-Match]
HSL::send $hsl "If-None-Match exists: [HTTP::header If-None-Match] CACHE DISCOVERY $none_match "
}
}
Those headers show up in the request headers list:
REQUEST HEADERS = Accept Referer Accept-Language User-Agent Host If-Modified-Since If-None-Match DNT Connection Cookie
But never catch in the conditional statements. Does anyone see my error?