Forum Discussion
OTS02
Cirrus
Feb 09, 2016Desire 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_header...
VernonWells
Employee
Feb 09, 2016I 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?
VernonWells
Employee
Feb 10, 2016I used telnet, but you can use curl to add headers (using the -H flag). It's also sometimes helpful to add -V to see all headers in the transaction.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects