Forum Discussion
VernonWells
Employee
I just tried the following on 11.5.3:
when HTTP_REQUEST {
log local0. "headers = [HTTP::header names]"
if { [HTTP::header exists If-None-Match] } {
log local0. "If-None-Match"
}
}
and with the following request:
GET / HTTP/1.1
Host:
If-None-Match: foo
the following is logged:
Rule /Common/test : headers = Host If-None-Match
Rule /Common/test : If-None-Match
just as I'd expect.
Can you switch the HSL to local logging (just for debugging; in general, HSL logging is a better production choice)? Can you also verify you see no errors in the log otherwise?
OTS02
Feb 10, 2016Cirrus
Thanks Vernon. As it turned out, my original code was working, but got missed by the syslog server(because I forgot to put the text string in the log line that the syslog server uses to direct to the correct file). As always, the Devcentral community leads me on to cool discoveries. So when you did the GET/ http/1.1 etc - was that from Curl?