Forum Discussion
Dan_Markhasin_1
Nimbostratus
Dec 01, 2015Capture all HTTP response headers
Hi,
Is there a way to capture all of the headers of the HTTP response? I am looking for something similar to HTTP::request which returns the raw HTTP headers of the request.
However, this c...
VernonWells
Employee
Dec 01, 2015I'm not sure what you mean about the difference between request and response. On 11.5.3, the following works as I would expect:
ltm rule resp-header-iterate {
when HTTP_RESPONSE {
foreach hname [HTTP::header names] {
log local0. "-- $hname = [HTTP::header values $hname]"
}
}
}
Do you find that either HTTP::header names or HTTP::header values does not work in HTTP_RESPONSE? If so, which version of code is running on your BIG-IP?
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